< 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 java.base/jdk.internal.misc
* java.management
@@ -52,11 +52,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 >