< prev index next >

test/hotspot/jtreg/runtime/exceptionMsgs/IllegalAccessError/IllegalAccessErrorTest.java

Print this page

        

@@ -139,11 +139,11 @@
 
     // Private method that should raise IllegalAccessError when called.
     private static void iae4_m() { }
 
     private static String expectedErrorMessage4 =
-        "class test.Runner4 tried to access private method 'void test.IllegalAccessErrorTest.iae4_m()' " +
+        "class test.Runner4 tried to access private method test.IllegalAccessErrorTest.iae4_m()V " +
         "(test.Runner4 and test.IllegalAccessErrorTest are in unnamed module of loader 'app')";
 
     // Test according to java/lang/invoke/DefineClassTest.java
     public static void test4_privateMethod() throws Exception {
         final String THIS_PACKAGE = IllegalAccessErrorTest.class.getPackageName();

@@ -262,11 +262,11 @@
             System.out.println("Passed with message: " + errorMsg);
         }
     }
 
     private static String expectedErrorMessage7_1 =
-        "class test.IAE78_B tried to access method 'void test.IAE78_A.<init>()' " +
+        "class test.IAE78_B tried to access method test.IAE78_A.<init>()V " +
         "(test.IAE78_B is in unnamed module of loader 'test7_method_CL' @";
     private static String expectedErrorMessage7_2 =
         "; test.IAE78_A is in unnamed module of loader 'app')";
 
     // Similar to test4.
< prev index next >