< prev index next >

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

Print this page

        

*** 669,679 **** } 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()'"; try { Caller.invokeTargetNoHost(); throw new Error("Missing IllegalAccessError: " + msg); } catch (IllegalAccessError expected) { --- 669,679 ---- } 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 TestNestmateMembership$TargetNoHost.m()V"; try { Caller.invokeTargetNoHost(); throw new Error("Missing IllegalAccessError: " + msg); } catch (IllegalAccessError expected) {
*** 696,715 **** catch (IllegalAccessException expected) { check_expected(expected, msg); } msg = "class TestNestmateMembership$CallerNoHost tried to access " + ! "private method 'void TestNestmateMembership$Target.m()'"; 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()'"; try { CallerNoHost.invokeTargetNoHost(); throw new Error("Missing IllegalAccessError: " + msg); } catch (IllegalAccessError expected) { --- 696,715 ---- catch (IllegalAccessException expected) { check_expected(expected, msg); } msg = "class TestNestmateMembership$CallerNoHost tried to access " + ! "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 TestNestmateMembership$TargetNoHost.m()V"; try { CallerNoHost.invokeTargetNoHost(); throw new Error("Missing IllegalAccessError: " + msg); } catch (IllegalAccessError expected) {
*** 948,958 **** } 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>()'"; try { Caller.newTargetNoHost(); throw new Error("Missing IncompatibleClassChangeError: " + msg); } catch (IncompatibleClassChangeError expected) { --- 948,958 ---- } 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 TestNestmateMembership$TargetNoHost.<init>()V"; try { Caller.newTargetNoHost(); throw new Error("Missing IncompatibleClassChangeError: " + msg); } catch (IncompatibleClassChangeError expected) {
*** 975,994 **** catch (IllegalAccessException expected) { check_expected(expected, msg); } msg = "class TestNestmateMembership$CallerNoHost tried to access private " + ! "method 'void TestNestmateMembership$Target.<init>()'"; 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>()'"; try { CallerNoHost.newTargetNoHost(); throw new Error("Missing IncompatibleClassChangeError: " + msg); } catch (IncompatibleClassChangeError expected) { --- 975,994 ---- catch (IllegalAccessException expected) { check_expected(expected, msg); } msg = "class TestNestmateMembership$CallerNoHost tried to access private " + ! "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 TestNestmateMembership$TargetNoHost.<init>()V"; try { CallerNoHost.newTargetNoHost(); throw new Error("Missing IncompatibleClassChangeError: " + msg); } catch (IncompatibleClassChangeError expected) {
< prev index next >