< prev index next >
test/hotspot/jtreg/runtime/cds/appcds/test-classes/RewriteBytecodes.java
Print this page
*** 28,38 ****
public class RewriteBytecodes {
public static void main(String args[]) throws Throwable {
String from = "___xxx___";
String to = "___yyy___";
File clsFile = new File(args[0]);
! Class superClass = Util.defineModifiedClass(RewriteBytecodes.class.getClassLoader(), clsFile, from, to);
Child child = new Child();
if (child.getClass().getSuperclass() != superClass) {
throw new RuntimeException("Mismatched super class");
--- 28,38 ----
public class RewriteBytecodes {
public static void main(String args[]) throws Throwable {
String from = "___xxx___";
String to = "___yyy___";
File clsFile = new File(args[0]);
! Class superClass = Util.defineModifiedClass(RewriteBytecodes.class, clsFile, from, to);
Child child = new Child();
if (child.getClass().getSuperclass() != superClass) {
throw new RuntimeException("Mismatched super class");
< prev index next >