--- a/hotspot/test/runtime/Unsafe/NestedUnsafe.java Wed Jul 05 22:08:56 2017 +0200
+++ b/hotspot/test/runtime/Unsafe/NestedUnsafe.java Tue Aug 30 17:48:27 2016 -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);