< prev index next >
test/hotspot/jtreg/runtime/Nestmates/membership/PackagedNestHost.java
Print this page
@@ -27,20 +27,20 @@
* This is used to produce a jcod file in which we modify the
* NestMembers attribute to claim that P2.PackagedNestHost.Member
* is a member of our nest.
*/
public class PackagedNestHost {
- // Use this to get our own NestMembers attribute
public static class Member {
- private static void m() {
+ // jcod file will change 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 the nestmate access check should fail due to m() being in
+ // and the nestmate access check should fail due to being in
// a different package.
P2.PackagedNestHost2.Member.m();
}
}
\ No newline at end of file
< prev index next >