equal
deleted
inserted
replaced
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()); |