< prev index next >

test/hotspot/jtreg/runtime/Nestmates/privateStaticMethods/TestReflection.java

Print this page

        

*** 22,32 **** */ /* * @test * @bug 8046171 ! * @summary Test access to private static methods between nestmates and nest-top * using different flavours of named nested types using core reflection * @run main TestReflection * @run main/othervm -Dsun.reflect.noInflation=true TestReflection */ --- 22,32 ---- */ /* * @test * @bug 8046171 ! * @summary Test access to private static methods between nestmates and nest-host * using different flavours of named nested types using core reflection * @run main TestReflection * @run main/othervm -Dsun.reflect.noInflation=true TestReflection */
*** 36,46 **** // instead. In this way both sets of Reflection classes are tested. public class TestReflection { ! // Private method of nest-top for nestmates to access private static void priv_static_invoke() { System.out.println("TestReflection::priv_static_invoke"); } // public constructor so we aren't relying on private access --- 36,46 ---- // instead. In this way both sets of Reflection classes are tested. public class TestReflection { ! // Private method of nest-host for nestmates to access private static void priv_static_invoke() { System.out.println("TestReflection::priv_static_invoke"); } // public constructor so we aren't relying on private access
< prev index next >