< prev index next >
test/hotspot/jtreg/runtime/Nestmates/privateConstructors/TestMethodHandles.java
Print this page
*** 22,32 ****
*/
/*
* @test
* @bug 8046171
! * @summary Test access to private constructors between nestmates and nest-top
* using different flavours of named nested types using method handles
* @run main TestMethodHandles
*/
import java.lang.invoke.*;
--- 22,32 ----
*/
/*
* @test
* @bug 8046171
! * @summary Test access to private constructors between nestmates and nest-host
* using different flavours of named nested types using method handles
* @run main TestMethodHandles
*/
import java.lang.invoke.*;
*** 126,136 ****
obj = (StaticNested) mh.invokeExact();
}
}
public static void main(String[] args) throws Throwable {
! // These initial constructions test nest-top access
MethodHandle mh =
lookup().findConstructor(TestMethodHandles.class, NOARG_T);
TestMethodHandles o = (TestMethodHandles) mh.invoke();
o = (TestMethodHandles) mh.invokeExact();
--- 126,136 ----
obj = (StaticNested) mh.invokeExact();
}
}
public static void main(String[] args) throws Throwable {
! // These initial constructions test nest-host access
MethodHandle mh =
lookup().findConstructor(TestMethodHandles.class, NOARG_T);
TestMethodHandles o = (TestMethodHandles) mh.invoke();
o = (TestMethodHandles) mh.invokeExact();
< prev index next >