This commit is contained in:
Alejandro Murillo 2016-08-31 09:22:53 -07:00
commit aecf372724

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);