< prev index next >
test/hotspot/jtreg/serviceability/jvmti/HiddenClass/libHiddenClassSigTest.cpp
Print this page
rev 58565 : 8238358: Implementation of JEP 371: Hidden Classes
Reviewed-by: duke
Contributed-by: mandy.chung@oracle.com, lois.foltan@oracle.com, david.holmes@oracle.com, harold.seigel@oracle.com, serguei.spitsyn@oracle.com, alex.buckley@oracle.com, jamsheed.c.m@oracle.com
rev 58568 : [mq]: hidden-class-4
@@ -44,11 +44,11 @@
LOG1("CHECK_JVMTI_ERROR: JVMTI function returned error: %d\n", err); \
jni->FatalError(msg); \
return; \
}
-/* Return the jmethodID of j.l.Class.isHiddenClass() method. */
+/* Return the jmethodID of j.l.Class.isHidden() method. */
static jmethodID
is_hidden_mid(JNIEnv* jni) {
char* csig = NULL;
jint count = 0;
jmethodID *methods = NULL;
@@ -56,14 +56,14 @@
if (clazz == NULL) {
jni->FatalError("is_hidden_mid: Error: FindClass returned NULL for java/lang/Class\n");
return NULL;
}
- // find the jmethodID of j.l.Class.isHiddenClass() method
- jmethodID mid = jni->GetMethodID(clazz, "isHiddenClass", "()Z");
+ // find the jmethodID of j.l.Class.isHidden() method
+ jmethodID mid = jni->GetMethodID(clazz, "isHidden", "()Z");
if (mid == NULL) {
- jni->FatalError("is_hidden_mid: Error in jni GetMethodID: Cannot find j.l.Class.isHiddenClass method\n");
+ jni->FatalError("is_hidden_mid: Error in jni GetMethodID: Cannot find j.l.Class.isHidden method\n");
}
return mid;
}
/* Return true if the klass is hidden. */
@@ -72,11 +72,11 @@
static jmethodID is_hid_mid = NULL;
if (is_hid_mid == NULL) {
is_hid_mid = is_hidden_mid(jni);
}
- // invoke j.l.Class.isHiddenClass() method
+ // invoke j.l.Class.isHidden() method
return jni->CallBooleanMethod(klass, is_hid_mid);
}
/* Check the class signature matches the expected. */
static void
< prev index next >