--- a/hotspot/test/runtime/Unsafe/NestedUnsafe.java Thu Sep 01 18:15:49 2016 +0300
+++ b/hotspot/test/runtime/Unsafe/NestedUnsafe.java Thu Sep 01 15:20:56 2016 -0700
@@ -80,7 +80,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);