< 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,20 +28,18 @@
 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);

@@ -106,18 +104,21 @@
                 }
                 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 >