< prev index next >

test/hotspot/jtreg/runtime/Nestmates/membership/TestNestmateMembership.java

Print this page

        

@@ -669,11 +669,11 @@
     }
 
     static void test_NoHostInvoke() throws Throwable {
         System.out.println("Testing for missing nest-host attribute");
         String msg = "class TestNestmateMembership$Caller tried to access " +
-            "private method 'void TestNestmateMembership$TargetNoHost.m()'";
+            "private method TestNestmateMembership$TargetNoHost.m()V";
         try {
             Caller.invokeTargetNoHost();
             throw new Error("Missing IllegalAccessError: " + msg);
         }
         catch (IllegalAccessError expected) {

@@ -696,20 +696,20 @@
         catch (IllegalAccessException expected) {
             check_expected(expected, msg);
         }
 
         msg = "class TestNestmateMembership$CallerNoHost tried to access " +
-            "private method 'void TestNestmateMembership$Target.m()'";
+            "private method TestNestmateMembership$Target.m()V";
         try {
             CallerNoHost.invokeTarget();
             throw new Error("Missing IllegalAccessError: " + msg);
         }
         catch (IllegalAccessError expected) {
             check_expected(expected, msg);
         }
         msg = "class TestNestmateMembership$CallerNoHost tried to access private " +
-            "method 'void TestNestmateMembership$TargetNoHost.m()'";
+            "method TestNestmateMembership$TargetNoHost.m()V";
         try {
             CallerNoHost.invokeTargetNoHost();
             throw new Error("Missing IllegalAccessError: " + msg);
         }
         catch (IllegalAccessError expected) {

@@ -948,11 +948,11 @@
     }
 
     static void test_NoHostConstruct() throws Throwable {
         System.out.println("Testing for missing nest-host attribute");
         String msg = "class TestNestmateMembership$Caller tried to access private " +
-            "method 'void TestNestmateMembership$TargetNoHost.<init>()'";
+            "method TestNestmateMembership$TargetNoHost.<init>()V";
         try {
             Caller.newTargetNoHost();
             throw new Error("Missing IncompatibleClassChangeError: " + msg);
         }
         catch (IncompatibleClassChangeError expected) {

@@ -975,20 +975,20 @@
         catch (IllegalAccessException expected) {
             check_expected(expected, msg);
         }
 
         msg = "class TestNestmateMembership$CallerNoHost tried to access private " +
-            "method 'void TestNestmateMembership$Target.<init>()'";
+            "method TestNestmateMembership$Target.<init>()V";
         try {
             CallerNoHost.newTarget();
             throw new Error("Missing IncompatibleClassChangeError: " + msg);
         }
         catch (IncompatibleClassChangeError expected) {
             check_expected(expected, msg);
         }
         msg = "class TestNestmateMembership$CallerNoHost tried to access private " +
-            "method 'void TestNestmateMembership$TargetNoHost.<init>()'";
+            "method TestNestmateMembership$TargetNoHost.<init>()V";
         try {
             CallerNoHost.newTargetNoHost();
             throw new Error("Missing IncompatibleClassChangeError: " + msg);
         }
         catch (IncompatibleClassChangeError expected) {
< prev index next >