< prev index next >

test/runtime/Nestmates/privateConstructors/TestInvokeSpecial.java

Print this page

        

@@ -24,13 +24,15 @@
 /*
  * @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
- * @compile -XDdisablePrivateAccessors TestInvokeSpecial.java
+ *          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 {
 
     // All constructors are private to ensure nestmate access checks apply
< prev index next >