< prev index next >

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

Print this page

        

*** 32,38 **** --- 32,45 ---- public static class Member { // jcod file changes this to private public static void m() { System.out.println("You should never see this!"); } + + // Entry point for main test + public static void doAccess() { + // this should fail at runtime as m() will now be private + // and our nest-host won't resolve as it's in a different package + P1.PackagedNestHost.Member.m(); + } } }
< prev index next >