diff --git a/build/asm/4_api_version.patch b/build/asm/4_api_version.patch index 39637270c7c6..c4a70349b235 100644 --- a/build/asm/4_api_version.patch +++ b/build/asm/4_api_version.patch @@ -1,3 +1,27 @@ +Index: org/objectweb/asm/AnnotationVisitor.java +=================================================================== +--- org/objectweb/asm/AnnotationVisitor.java ++++ org/objectweb/asm/AnnotationVisitor.java +@@ -76,7 +76,18 @@ + if (api < Opcodes.ASM4 || api > Opcodes.ASM6) { + throw new IllegalArgumentException(); + } +- this.api = api; ++ this.api = Opcodes.ASM6; //[JB: use the latest API version] ++ this.av = av; ++ } ++ ++ //[JB: use the latest API version] ++ public AnnotationVisitor() { ++ this(null); ++ } ++ ++ //[JB: use the latest API version] ++ public AnnotationVisitor(final AnnotationVisitor av) { ++ this.api = Opcodes.ASM6; + this.av = av; + } + Index: org/objectweb/asm/ClassVisitor.java =================================================================== --- org/objectweb/asm/ClassVisitor.java @@ -22,3 +46,93 @@ Index: org/objectweb/asm/ClassVisitor.java this.cv = cv; } +Index: org/objectweb/asm/FieldVisitor.java +=================================================================== +--- org/objectweb/asm/FieldVisitor.java ++++ org/objectweb/asm/FieldVisitor.java +@@ -75,7 +75,18 @@ + if (api < Opcodes.ASM4 || api > Opcodes.ASM6) { + throw new IllegalArgumentException(); + } +- this.api = api; ++ this.api = Opcodes.ASM6; //[JB: use the latest API version] ++ this.fv = fv; ++ } ++ ++ //[JB: use the latest API version] ++ public FieldVisitor() { ++ this(null); ++ } ++ ++ //[JB: use the latest API version] ++ public FieldVisitor(final FieldVisitor fv) { ++ this.api = Opcodes.ASM6; + this.fv = fv; + } + +Index: org/objectweb/asm/MethodVisitor.java +=================================================================== +--- org/objectweb/asm/MethodVisitor.java ++++ org/objectweb/asm/MethodVisitor.java +@@ -92,7 +92,18 @@ + if (api < Opcodes.ASM4 || api > Opcodes.ASM6) { + throw new IllegalArgumentException(); + } +- this.api = api; ++ this.api = Opcodes.ASM6; //[JB: use the latest API version] ++ this.mv = mv; ++ } ++ ++ //[JB: use the latest API version] ++ public MethodVisitor() { ++ this(null); ++ } ++ ++ //[JB: use the latest API version] ++ public MethodVisitor(final MethodVisitor mv) { ++ this.api = Opcodes.ASM6; + this.mv = mv; + } + +Index: org/objectweb/asm/ModuleVisitor.java +=================================================================== +--- org/objectweb/asm/ModuleVisitor.java ++++ org/objectweb/asm/ModuleVisitor.java +@@ -68,7 +68,18 @@ + if (api != Opcodes.ASM6) { + throw new IllegalArgumentException(); + } +- this.api = api; ++ this.api = Opcodes.ASM6; //[JB: use the latest API version] ++ this.mv = mv; ++ } ++ ++ //[JB: use the latest API version] ++ public ModuleVisitor() { ++ this(null); ++ } ++ ++ //[JB: use the latest API version] ++ public ModuleVisitor(final ModuleVisitor mv) { ++ this.api = Opcodes.ASM6; + this.mv = mv; + } + +Index: org/objectweb/asm/signature/SignatureVisitor.java +=================================================================== +--- org/objectweb/asm/signature/SignatureVisitor.java ++++ org/objectweb/asm/signature/SignatureVisitor.java +@@ -88,7 +88,12 @@ + if (api < Opcodes.ASM4 || api > Opcodes.ASM6) { + throw new IllegalArgumentException(); + } +- this.api = api; ++ this.api = Opcodes.ASM6; //[JB: use the latest API version] ++ } ++ ++ //[JB: use the latest API version] ++ public SignatureVisitor() { ++ this.api = Opcodes.ASM6; + } + + /** diff --git a/lib/asm-all.jar b/lib/asm-all.jar index 581e13583d3e..04caa5ad8857 100644 Binary files a/lib/asm-all.jar and b/lib/asm-all.jar differ diff --git a/lib/src/asm-src.zip b/lib/src/asm-src.zip index 8984afd4150b..99b5a0cb1b23 100644 Binary files a/lib/src/asm-src.zip and b/lib/src/asm-src.zip differ