mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] patches ASM to use the latest API version by default
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user