This commit is contained in:
Alejandro Murillo 2016-09-01 15:20:56 -07:00
commit 199b53c0b1

View File

@ -80,7 +80,7 @@ public class NestedUnsafe {
" 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);