< prev index next >

hotspot/test/runtime/Unsafe/NestedUnsafe.java

Print this page

        

@@ -77,11 +77,11 @@
             "            klass2.getMethod(\"concat\", dArgs).invoke(null, \"CC\", \"DD\"); " +
             "        } catch (Throwable ex) { " +
             "            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);
         } catch (Throwable ex) {
             throw new RuntimeException("Exception: " + ex.toString());
< prev index next >