< prev index next >

test/hotspot/jtreg/runtime/exceptionMsgs/IncompatibleClassChangeError/IncompatibleClassChangeErrorTest.java

Print this page

        

*** 210,220 **** throw new RuntimeException("Expected IncompatibleClassChangeError was not thrown."); } } private static String expectedErrorMessage3 = ! "Class test.ICC3_B can not implement test.ICC3_A, because it is not an interface"; public static void test3_implementsClass() throws Exception { try { new ICC3_B(); throw new RuntimeException("Expected IncompatibleClassChangeError was not thrown."); --- 210,220 ---- throw new RuntimeException("Expected IncompatibleClassChangeError was not thrown."); } } private static String expectedErrorMessage3 = ! "class test.ICC3_B can not implement test.ICC3_A, because it is not an interface (test.ICC3_A is in unnamed module of loader 'app')"; public static void test3_implementsClass() throws Exception { try { new ICC3_B(); throw new RuntimeException("Expected IncompatibleClassChangeError was not thrown.");
< prev index next >