< prev index next >

test/hotspot/jtreg/vmTestbase/vm/mlvm/patches/java.base/jdk/internal/org/objectweb/asm/ClassWriterExt.java

Print this page
rev 52456 : imported patch asm.additional

*** 28,47 **** public class ClassWriterExt extends ClassWriter { private boolean cacheInvokeDynamic = true; private boolean cacheMTypes = true; private boolean cacheMHandles = true; - private final Item key = new Item(); - public ClassWriterExt(ClassReader cr, int flags) { super(cr, flags); } public ClassWriterExt(int flags) { super(flags); } ! @Override Item newInvokeDynamicItem(final String name, final String desc, final Handle bsm, final Object... bsmArgs) { if (cacheInvokeDynamic) { return super.newInvokeDynamicItem(name, desc, bsm, bsmArgs); --- 28,45 ---- public class ClassWriterExt extends ClassWriter { private boolean cacheInvokeDynamic = true; private boolean cacheMTypes = true; private boolean cacheMHandles = true; public ClassWriterExt(ClassReader cr, int flags) { super(cr, flags); } public ClassWriterExt(int flags) { super(flags); } ! /* @Override Item newInvokeDynamicItem(final String name, final String desc, final Handle bsm, final Object... bsmArgs) { if (cacheInvokeDynamic) { return super.newInvokeDynamicItem(name, desc, bsm, bsmArgs);
*** 106,123 **** } i = i.next; } } } ! public void setCacheInvokeDynamic(boolean value) { cacheInvokeDynamic = value; } public void setCacheMTypes(boolean value) { cacheMTypes = value; } public void setCacheMHandles(boolean value) { cacheMHandles = value; } public int getBytecodeLength(MethodVisitor mv) { ByteVector code; --- 104,124 ---- } i = i.next; } } } ! */ public void setCacheInvokeDynamic(boolean value) { + if (!value) throw new Error("method isn't implemented yet"); cacheInvokeDynamic = value; } public void setCacheMTypes(boolean value) { + if (!value) throw new Error("method isn't implemented yet"); cacheMTypes = value; } public void setCacheMHandles(boolean value) { + if (!value) throw new Error("method isn't implemented yet"); cacheMHandles = value; } public int getBytecodeLength(MethodVisitor mv) { ByteVector code;
< prev index next >