--- old/test/runtime/Nestmates/privateMethods/TestInvoke.java 2017-09-15 02:59:44.233945049 -0400 +++ new/test/runtime/Nestmates/privateMethods/TestInvoke.java 2017-09-15 02:59:42.297835241 -0400 @@ -26,8 +26,7 @@ * @bug 8046171 * @summary Test access to private methods between nestmates and nest-top * using different flavours of named nested types - * @compile -XDdisablePrivateAccessors TestInvoke.java - * @run main TestInvoke + * @run main TestInvoke */ public class TestInvoke { @@ -113,6 +112,9 @@ // public constructor so we aren't relying on private access public InnerNested() {} + void access_priv() { + TestInvoke.this.priv_invoke(); // check this$0 access + } void access_priv(TestInvoke o) { o.priv_invoke(); } @@ -143,6 +145,7 @@ s.access_priv(new StaticNested()); s.access_priv(intf); + i.access_priv(); i.access_priv(o); i.access_priv(o.new InnerNested()); i.access_priv(s);