< prev index next >

test/hotspot/jtreg/runtime/exceptionMsgs/AbstractMethodError/AbstractMethodErrorTest.java

Print this page

        

@@ -97,15 +97,15 @@
         System.out.println("warmup done.");
         return true;
     }
 
     private static String expectedErrorMessageAME1_1 =
-        "Missing implementation of resolved method 'abstract " +
-        "java.lang.String anAbstractMethod()' of abstract class AME1_B.";
+        "Missing implementation of resolved method abstract " +
+        "anAbstractMethod()Ljava/lang/String; of abstract class AME1_B.";
     private static String expectedErrorMessageAME1_2 =
         "Receiver class AME1_E does not define or inherit an implementation of the " +
-        "resolved method 'abstract java.lang.String aFunctionOfMyInterface()' of " +
+        "resolved method abstract aFunctionOfMyInterface()Ljava/lang/String; of " +
         "interface AME1_C.";
 
     public static void test_ame1() {
         AME1_B objectAbstract = new AME1_D();
         AME1_C objectInterface = new AME1_D();

@@ -156,15 +156,15 @@
             throw new RuntimeException("Caught unexpected exception: " + e);
         }
     }
 
     private static String expectedErrorMessageAME2_Interpreted =
-        "Missing implementation of resolved method 'abstract " +
-        "void aFunctionOfMyInterface()' of interface AME2_A.";
+        "Missing implementation of resolved method abstract " +
+        "aFunctionOfMyInterface()V of interface AME2_A.";
     private static String expectedErrorMessageAME2_Compiled =
         "Receiver class AME2_C does not define or inherit an implementation of the resolved method " +
-        "'abstract void aFunctionOfMyInterface()' of interface AME2_A.";
+        "abstract aFunctionOfMyInterface()V of interface AME2_A.";
 
     public AbstractMethodErrorTest() throws InstantiationException, IllegalAccessException {
         try {
             AME2_B myAbstract = new ImplementsAllFunctions();
             myAbstract.fun2();

@@ -226,11 +226,11 @@
         }
     }
 
     private static String expectedErrorMessageAME3_1 =
         "Receiver class AME3_C does not define or inherit an implementation of the resolved method " +
-        "'void ma()' of class AME3_A. Selected method is 'abstract void AME3_B.ma()'.";
+        "ma()V of class AME3_A. Selected method is abstract AME3_B.ma()V.";
 
     // Testing abstract class that extends a class that has an implementation.
     // Loop so that method gets eventually compiled/osred.
     public static void test_ame3_1() throws Exception {
         AME3_A c = new AME3_C();

@@ -257,11 +257,11 @@
         }
     }
 
     private static String expectedErrorMessageAME3_2 =
         "Receiver class AME3_C does not define or inherit an implementation of " +
-        "the resolved method 'abstract void ma()' of abstract class AME3_B.";
+        "the resolved method abstract ma()V of abstract class AME3_B.";
 
     // Testing abstract class that extends a class that has an implementation.
     // Loop so that method gets eventually compiled/osred.
     public static void test_ame3_2() throws Exception {
         AME3_C c = new AME3_C();

@@ -287,11 +287,11 @@
             }
         }
     }
 
     private static String expectedErrorMessageAME4 =
-        "Missing implementation of resolved method 'abstract void ma()' of " +
+        "Missing implementation of resolved method abstract ma()V of " +
         "abstract class AME4_B.";
 
     // Testing abstract class that extends a class that has an implementation.
     public static void test_ame4() throws Exception {
         AME4_C c = new AME4_C();

@@ -334,11 +334,11 @@
             }
         }
     }
 
     private static String expectedErrorMessageAME5_VtableStub =
-        "Receiver class AME5_B does not define or inherit an implementation of the resolved method 'abstract void mc()' " +
+        "Receiver class AME5_B does not define or inherit an implementation of the resolved method abstract mc()V " +
         "of abstract class AME5_A.";
 
     // AbstractMethodErrors detected in vtable stubs.
     // Note: How can we verify that we really stepped through the vtable stub?
     // - Bimorphic inlining should not happen since we have no profiling data when

@@ -407,11 +407,11 @@
         }
     }
 
     private static String expectedErrorMessageAME6_ItableStub =
         "Receiver class AME6_B does not define or inherit an implementation of the resolved" +
-        " method 'abstract void mc()' of interface AME6_A.";
+        " method abstract mc()V of interface AME6_A.";
 
     // -------------------------------------------------------------------------
     // AbstractMethodErrors detected in itable stubs.
     // Note: How can we verify that we really stepped through the itable stub?
     // - Bimorphic inlining should not happen since we have no profiling data when
< prev index next >