< prev index next >

test/hotspot/jtreg/runtime/Nestmates/privateFields/TestMethodHandles.java

Print this page

        

*** 22,42 **** */ /* * @test * @bug 8046171 ! * @summary Test access to private fields between nestmates and nest-top * using different flavours of named nested types using method handles * @run main TestMethodHandles */ import java.lang.invoke.*; import static java.lang.invoke.MethodHandles.*; public class TestMethodHandles { ! // Private field of nest-top for nestmates to access private int priv_field; // public constructor so we aren't relying on private access public TestMethodHandles() {} --- 22,42 ---- */ /* * @test * @bug 8046171 ! * @summary Test access to private fields between nestmates and nest-host * using different flavours of named nested types using method handles * @run main TestMethodHandles */ import java.lang.invoke.*; import static java.lang.invoke.MethodHandles.*; public class TestMethodHandles { ! // Private field of nest-host for nestmates to access private int priv_field; // public constructor so we aren't relying on private access public TestMethodHandles() {}
< prev index next >