< prev index next >

test/hotspot/jtreg/runtime/RedefineTests/RedefineAnnotations.java

Print this page
rev 52456 : imported patch asm.additional

*** 61,71 **** import java.util.Map; import jdk.internal.org.objectweb.asm.ClassReader; import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.ClassWriter; import jdk.internal.org.objectweb.asm.FieldVisitor; ! import static jdk.internal.org.objectweb.asm.Opcodes.ASM5; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE_USE) @interface TestAnn { String site(); --- 61,71 ---- import java.util.Map; import jdk.internal.org.objectweb.asm.ClassReader; import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.ClassWriter; import jdk.internal.org.objectweb.asm.FieldVisitor; ! import static jdk.internal.org.objectweb.asm.Opcodes.ASM7; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE_USE) @interface TestAnn { String site();
*** 83,93 **** Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { ClassWriter cw = new ClassWriter(0); ! ClassVisitor cv = new ReAddDummyFieldsClassVisitor(ASM5, cw) { }; ClassReader cr = new ClassReader(classfileBuffer); cr.accept(cv, 0); return cw.toByteArray(); } --- 83,93 ---- Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException { ClassWriter cw = new ClassWriter(0); ! ClassVisitor cv = new ReAddDummyFieldsClassVisitor(ASM7, cw) { }; ClassReader cr = new ClassReader(classfileBuffer); cr.accept(cv, 0); return cw.toByteArray(); }
< prev index next >