< prev index next >
test/hotspot/jtreg/runtime/Nestmates/membership/TestNestmateMembership.java
Print this page
@@ -668,13 +668,12 @@
}
}
static void test_NoHostInvoke() throws Throwable {
System.out.println("Testing for missing nest-host attribute");
- String msg = "tried to access method " +
- "TestNestmateMembership$TargetNoHost.m()V from class " +
- "TestNestmateMembership$Caller";
+ String msg = "class TestNestmateMembership$Caller tried to access " +
+ "method TestNestmateMembership$TargetNoHost.m()V";
try {
Caller.invokeTargetNoHost();
throw new Error("Missing IllegalAccessError: " + msg);
}
catch (IllegalAccessError expected) {
@@ -696,21 +695,21 @@
}
catch (IllegalAccessException expected) {
check_expected(expected, msg);
}
- msg = "tried to access method TestNestmateMembership$Target.m()V" +
- " from class TestNestmateMembership$CallerNoHost";
+ msg = "class TestNestmateMembership$CallerNoHost tried to access " +
+ "method TestNestmateMembership$Target.m()V";
try {
CallerNoHost.invokeTarget();
throw new Error("Missing IllegalAccessError: " + msg);
}
catch (IllegalAccessError expected) {
check_expected(expected, msg);
}
- msg = "tried to access method TestNestmateMembership$TargetNoHost.m()V" +
- " from class TestNestmateMembership$CallerNoHost";
+ msg = "class TestNestmateMembership$CallerNoHost tried to access method " +
+ "TestNestmateMembership$TargetNoHost.m()V";
try {
CallerNoHost.invokeTargetNoHost();
throw new Error("Missing IllegalAccessError: " + msg);
}
catch (IllegalAccessError expected) {
@@ -948,12 +947,12 @@
}
}
static void test_NoHostConstruct() throws Throwable {
System.out.println("Testing for missing nest-host attribute");
- String msg = "tried to access method TestNestmateMembership$TargetNoHost.<init>()V" +
- " from class TestNestmateMembership$Caller";
+ String msg = "class TestNestmateMembership$Caller tried to access method " +
+ "TestNestmateMembership$TargetNoHost.<init>()V";
try {
Caller.newTargetNoHost();
throw new Error("Missing IncompatibleClassChangeError: " + msg);
}
catch (IncompatibleClassChangeError expected) {
@@ -975,21 +974,21 @@
}
catch (IllegalAccessException expected) {
check_expected(expected, msg);
}
- msg = "tried to access method TestNestmateMembership$Target.<init>()V" +
- " from class TestNestmateMembership$CallerNoHost";
+ msg = "class TestNestmateMembership$CallerNoHost tried to access method " +
+ "TestNestmateMembership$Target.<init>()V";
try {
CallerNoHost.newTarget();
throw new Error("Missing IncompatibleClassChangeError: " + msg);
}
catch (IncompatibleClassChangeError expected) {
check_expected(expected, msg);
}
- msg = "tried to access method TestNestmateMembership$TargetNoHost.<init>()V" +
- " from class TestNestmateMembership$CallerNoHost";
+ msg = "class TestNestmateMembership$CallerNoHost tried to access method " +
+ "TestNestmateMembership$TargetNoHost.<init>()V";
try {
CallerNoHost.newTargetNoHost();
throw new Error("Missing IncompatibleClassChangeError: " + msg);
}
catch (IncompatibleClassChangeError expected) {
< prev index next >