File: 01-asm-compatibility.patch

package info (click to toggle)
jitescript 0.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 232 kB
  • sloc: java: 1,697; xml: 154; makefile: 4
file content (26 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Fixes the build failure with the version of ASM in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
Bug-Debian: https://bugs.debian.org/884044
--- a/src/main/java/me/qmx/jitescript/FieldDefinition.java
+++ b/src/main/java/me/qmx/jitescript/FieldDefinition.java
@@ -22,7 +22,7 @@
 
     public FieldNode getFieldNode() {
         FieldNode node = new FieldNode(modifiers, fieldName, signature, null, value);
-        node.visibleAnnotations = new ArrayList<VisibleAnnotation>();
+        node.visibleAnnotations = new ArrayList();
         for (VisibleAnnotation annotation : annotations) {
             node.visibleAnnotations.add(annotation.getNode());
         }
--- a/src/main/java/me/qmx/jitescript/MethodDefinition.java
+++ b/src/main/java/me/qmx/jitescript/MethodDefinition.java
@@ -55,7 +55,7 @@
 
     public MethodNode getMethodNode() {
         MethodNode method = new MethodNode(getModifiers(), getMethodName(), getSignature(), null, null);
-        method.visibleAnnotations = new ArrayList<VisibleAnnotation>();
+        method.visibleAnnotations = new ArrayList();
         method.instructions.add(getMethodBody().getInstructionList());
         for (TryCatchBlockNode tryCatchBlockNode : getMethodBody().getTryCatchBlockList()) {
             method.tryCatchBlocks.add(tryCatchBlockNode);