< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/tree/MethodNode.java

Print this page
rev 47452 : imported patch jdk-new-asmv6.patch

*** 247,257 **** * * @throws IllegalStateException * If a subclass calls this constructor. */ public MethodNode() { ! this(Opcodes.ASM5); if (getClass() != MethodNode.class) { throw new IllegalStateException(); } } --- 247,257 ---- * * @throws IllegalStateException * If a subclass calls this constructor. */ public MethodNode() { ! this(Opcodes.ASM6); if (getClass() != MethodNode.class) { throw new IllegalStateException(); } }
*** 258,268 **** /** * Constructs an uninitialized {@link MethodNode}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}. */ public MethodNode(final int api) { super(api); this.instructions = new InsnList(); } --- 258,268 ---- /** * Constructs an uninitialized {@link MethodNode}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. */ public MethodNode(final int api) { super(api); this.instructions = new InsnList(); }
*** 289,299 **** * @throws IllegalStateException * If a subclass calls this constructor. */ public MethodNode(final int access, final String name, final String desc, final String signature, final String[] exceptions) { ! this(Opcodes.ASM5, access, name, desc, signature, exceptions); if (getClass() != MethodNode.class) { throw new IllegalStateException(); } } --- 289,299 ---- * @throws IllegalStateException * If a subclass calls this constructor. */ public MethodNode(final int access, final String name, final String desc, final String signature, final String[] exceptions) { ! this(Opcodes.ASM6, access, name, desc, signature, exceptions); if (getClass() != MethodNode.class) { throw new IllegalStateException(); } }
*** 300,310 **** /** * Constructs a new {@link MethodNode}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}. * @param access * the method's access flags (see {@link Opcodes}). This * parameter also indicates if the method is synthetic and/or * deprecated. * @param name --- 300,310 ---- /** * Constructs a new {@link MethodNode}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. * @param access * the method's access flags (see {@link Opcodes}). This * parameter also indicates if the method is synthetic and/or * deprecated. * @param name
*** 686,697 **** * version. This methods checks that this node, and all its nodes * recursively, do not contain elements that were introduced in more recent * versions of the ASM API than the given version. * * @param api ! * an ASM API version. Must be one of {@link Opcodes#ASM4} or ! * {@link Opcodes#ASM5}. */ public void check(final int api) { if (api == Opcodes.ASM4) { if (visibleTypeAnnotations != null && visibleTypeAnnotations.size() > 0) { --- 686,697 ---- * version. This methods checks that this node, and all its nodes * recursively, do not contain elements that were introduced in more recent * versions of the ASM API than the given version. * * @param api ! * an ASM API version. Must be one of {@link Opcodes#ASM4}, ! * {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. */ public void check(final int api) { if (api == Opcodes.ASM4) { if (visibleTypeAnnotations != null && visibleTypeAnnotations.size() > 0) {
< prev index next >