Bug 527086: [java9] Support Java 9
- raise ASM API level to 6
diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/AsmBoundClass.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/AsmBoundClass.java
index d9e5917..3998941 100644
--- a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/AsmBoundClass.java
+++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/AsmBoundClass.java
@@ -34,7 +34,7 @@
  */

 public abstract class AsmBoundClass extends AbstractTeam {

 	

-	public static final int ASM_API = Opcodes.ASM5;

+	public static final int ASM_API = Opcodes.ASM6;

 

 	private IBytecodeProvider bytecodeProvider;

 	

diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/verify/OTCheckClassAdapter.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/verify/OTCheckClassAdapter.java
index 87d11c3..e7604f5 100644
--- a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/verify/OTCheckClassAdapter.java
+++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/bytecode/asm/verify/OTCheckClassAdapter.java
@@ -24,6 +24,7 @@
 import java.util.Iterator;
 import java.util.List;
 
+import org.eclipse.objectteams.otredyn.bytecode.asm.AsmBoundClass;
 import org.objectweb.asm.ClassReader;
 import org.objectweb.asm.ClassVisitor;
 import org.objectweb.asm.FieldVisitor;
@@ -151,7 +152,7 @@
 	}
 
 	public OTCheckClassAdapter(ClassVisitor cv, boolean checkDataFlow) {
-		super(Opcodes.ASM5, cv, checkDataFlow);
+		super(AsmBoundClass.ASM_API, cv, checkDataFlow);
 	}
 
 	/**