< prev index next >
test/hotspot/jtreg/runtime/cds/appcds/RewriteBytecodesTest.java
Print this page
@@ -22,11 +22,11 @@
*
*/
/*
* @test
- * @summary Use ClassLoader.defineClass() to load a class with rewritten bytecode. Make sure
+ * @summary Use Lookup.defineClass() to load a class with rewritten bytecode. Make sure
* the archived class with the same name is not loaded.
* @requires vm.cds
* @library /test/lib
* @modules jdk.jartool/sun.tools.jar
* @compile test-classes/RewriteBytecodes.java test-classes/Util.java test-classes/Super.java test-classes/Child.java
@@ -50,11 +50,10 @@
// command-line arguments ...
use_whitebox_jar);
OutputAnalyzer output = TestCommon.exec(appJar,
// command-line arguments ...
- "--add-opens=java.base/java.lang=ALL-UNNAMED",
use_whitebox_jar,
"-XX:+UnlockDiagnosticVMOptions",
"-XX:+WhiteBoxAPI",
"RewriteBytecodes", superClsFile);
TestCommon.checkExec(output);
< prev index next >