--- old/hotspot/test/runtime/Unsafe/NestedUnsafe.java 2016-08-30 08:41:47.000000000 -0700 +++ new/hotspot/test/runtime/Unsafe/NestedUnsafe.java 2016-08-30 08:41:47.000000000 -0700 @@ -79,7 +79,7 @@ " throw new RuntimeException(\"Exception: \" + ex.toString()); " + " } " + "} } ", - "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED"); + "--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED"); Class klass2 = unsafe.defineAnonymousClass(NestedUnsafe.class, klassbuf2, new Object[0]); try { klass2.getMethod("doit").invoke(null);