--- a/hotspot/test/runtime/Unsafe/NestedUnsafe.java Fri Aug 26 10:02:47 2016 -0700
+++ b/hotspot/test/runtime/Unsafe/NestedUnsafe.java Wed Aug 31 09:22:53 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);