[platform] patches ASM to use the latest API version by default

This commit is contained in:
Roman Shevchenko
2016-08-09 16:29:33 +02:00
parent bc9ef04830
commit db658c7785
4 changed files with 25 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
Index: org/objectweb/asm/ClassVisitor.java
===================================================================
--- org/objectweb/asm/ClassVisitor.java
+++ org/objectweb/asm/ClassVisitor.java
@@ -78,7 +78,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.cv = cv;
+ }
+
+ //[JB: use the latest API version]
+ public ClassVisitor() {
+ this(null);
+ }
+
+ //[JB: use the latest API version]
+ public ClassVisitor(final ClassVisitor cv) {
+ this.api = Opcodes.ASM6;
this.cv = cv;
}
+1
View File
@@ -42,6 +42,7 @@
<patch dir="${src.dir}" strip="0" patchfile="1_version_check.patch" failonerror="true"/>
<patch dir="${src.dir}" strip="0" patchfile="2_coverage_fix.patch" failonerror="true"/>
<patch dir="${src.dir}" strip="0" patchfile="3_317621_fix_temp_revert.patch" failonerror="true"/>
<patch dir="${src.dir}" strip="0" patchfile="4_api_version.patch" failonerror="true"/>
<delete file="${src.dir}/org/objectweb/asm/optimizer/ModuleInfoBndPlugin.java" quiet="true"/>
</target>
BIN
View File
Binary file not shown.
Binary file not shown.