< prev index next >
test/hotspot/jtreg/runtime/Nestmates/privateMethods/TestInvokeErrors.java
Print this page
@@ -28,11 +28,11 @@
* modified jcod classes to introduce errors. Test with
* and without verification enabled
* @compile TestInvokeErrors.java
* @compile MissingMethod.jcod
* MissingMethodWithSuper.jcod
- * MissingNestTop.jcod
+ * MissingNestHost.jcod
* @run main TestInvokeErrors true
* @run main/othervm -Xverify:none TestInvokeErrors false
*/
public class TestInvokeErrors {
@@ -55,26 +55,26 @@
private void priv_invoke() {
System.out.println("MissingMethodWithSuper::priv_invoke");
}
}
- static class MissingNestTop {
- // jcod version will change MemberOfNest to a non-existent class
+ static class MissingNestHost {
+ // jcod version will change NestHost to a non-existent class
private void priv_invoke() {
- System.out.println("MissingNestTop::priv_invoke");
+ System.out.println("MissingNestHost::priv_invoke");
}
}
// Helper class adds a level of indirection to avoid the main class
// failing verification if these tests are written directly in main.
// That can only happen if using invokespecial for nestmate invocation.
static class Helper {
static void doTest() {
try {
- MissingNestTop m = new MissingNestTop();
+ MissingNestHost m = new MissingNestHost();
m.priv_invoke();
- throw new Error("Unexpected success invoking MissingNestTop.priv_invoke");
+ throw new Error("Unexpected success invoking MissingNestHost.priv_invoke");
}
catch (NoClassDefFoundError ncdfe) {
System.out.println("Got expected exception:" + ncdfe);
}
}
< prev index next >