< prev index next >
test/hotspot/jtreg/runtime/Nestmates/privateConstructors/TestInvokeSpecial.java
Print this page
*** 22,36 ****
*/
/*
* @test
* @bug 8046171
! * @summary Test access to private constructors between nestmates and nest-top
* using different flavours of named nested types that will
* generate invokespecial for the calls. The -Xcomp run is a special
* regression test for a compiler assertion that would fire when
! * "loading" a nest-top class.
* @run main TestInvokeSpecial
* @run main/othervm -Xcomp TestInvokeSpecial
*/
public class TestInvokeSpecial {
--- 22,36 ----
*/
/*
* @test
* @bug 8046171
! * @summary Test access to private constructors between nestmates and nest-host
* using different flavours of named nested types that will
* generate invokespecial for the calls. The -Xcomp run is a special
* regression test for a compiler assertion that would fire when
! * "loading" a nest-host class.
* @run main TestInvokeSpecial
* @run main/othervm -Xcomp TestInvokeSpecial
*/
public class TestInvokeSpecial {
*** 103,113 ****
Object obj = new StaticIface() {};
}
}
public static void main(String[] args) {
! // These initial constructions test nest-top access
TestInvokeSpecial o = new TestInvokeSpecial();
StaticNested s = new StaticNested();
InnerNested i = o.new InnerNested();
StaticIface intf = new StaticIface() {};
--- 103,113 ----
Object obj = new StaticIface() {};
}
}
public static void main(String[] args) {
! // These initial constructions test nest-host access
TestInvokeSpecial o = new TestInvokeSpecial();
StaticNested s = new StaticNested();
InnerNested i = o.new InnerNested();
StaticIface intf = new StaticIface() {};
< prev index next >