hotspot/test/runtime/Unsafe/NestedUnsafe.java
changeset 40623 ea81d1ecdb26
parent 40385 a7011a835634
child 40671 0338471d9019
equal deleted inserted replaced
40608:a71210c0d980 40623:ea81d1ecdb26
    77             "            klass2.getMethod(\"concat\", dArgs).invoke(null, \"CC\", \"DD\"); " +
    77             "            klass2.getMethod(\"concat\", dArgs).invoke(null, \"CC\", \"DD\"); " +
    78             "        } catch (Throwable ex) { " +
    78             "        } catch (Throwable ex) { " +
    79             "            throw new RuntimeException(\"Exception: \" + ex.toString()); " +
    79             "            throw new RuntimeException(\"Exception: \" + ex.toString()); " +
    80             "        } " +
    80             "        } " +
    81             "} } ",
    81             "} } ",
    82             "-XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED");
    82             "--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED");
    83         Class klass2 = unsafe.defineAnonymousClass(NestedUnsafe.class, klassbuf2, new Object[0]);
    83         Class klass2 = unsafe.defineAnonymousClass(NestedUnsafe.class, klassbuf2, new Object[0]);
    84         try {
    84         try {
    85             klass2.getMethod("doit").invoke(null);
    85             klass2.getMethod("doit").invoke(null);
    86         } catch (Throwable ex) {
    86         } catch (Throwable ex) {
    87             throw new RuntimeException("Exception: " + ex.toString());
    87             throw new RuntimeException("Exception: " + ex.toString());