Skip to content

Commit 353a8b7

Browse files
Update ASM dependency to version 9.2 in ByteCodeTranslator and ParparVM (#4271)
Updated `asm` dependencies in `vm/pom.xml` and `maven/parparvm/pom.xml` to 9.2. Updated `vm/ByteCodeTranslator/src/com/codename1/tools/translator/Parser.java` to use `Opcodes.ASM9`. This change maintains source/target 1.5 compatibility in configuration while enabling support for newer class file features. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 8cc7520 commit 353a8b7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

maven/parparvm/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
<dependency>
1919
<groupId>org.ow2.asm</groupId>
2020
<artifactId>asm</artifactId>
21-
<version>5.0.3</version>
21+
<version>9.2</version>
2222
</dependency>
2323

2424
<!-- https://mvnrepository.com/artifact/org.ow2.asm/asm-tree -->
2525
<dependency>
2626
<groupId>org.ow2.asm</groupId>
2727
<artifactId>asm-tree</artifactId>
28-
<version>5.0.3</version>
28+
<version>9.2</version>
2929
</dependency>
3030

3131
<!-- https://mvnrepository.com/artifact/org.ow2.asm/asm-commons -->
3232
<dependency>
3333
<groupId>org.ow2.asm</groupId>
3434
<artifactId>asm-commons</artifactId>
35-
<version>5.0.3</version>
35+
<version>9.2</version>
3636
</dependency>
3737

3838
</dependencies>

vm/ByteCodeTranslator/src/com/codename1/tools/translator/Parser.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ private static void writeFile(ByteCodeClass cls, File outputDir, ConcatenatingFi
649649
}
650650

651651
public Parser() {
652-
super(Opcodes.ASM5);
652+
super(Opcodes.ASM9);
653653
}
654654

655655
@Override
@@ -738,7 +738,7 @@ public void visit(int version, int access, String name, String signature, String
738738
class MethodVisitorWrapper extends MethodVisitor {
739739
private BytecodeMethod mtd;
740740
public MethodVisitorWrapper(MethodVisitor mv, BytecodeMethod mtd) {
741-
super(Opcodes.ASM5, mv);
741+
super(Opcodes.ASM9, mv);
742742
this.mtd = mtd;
743743
}
744744

@@ -930,7 +930,7 @@ public void visitParameter(String name, int access) {
930930
class FieldVisitorWrapper extends FieldVisitor {
931931

932932
public FieldVisitorWrapper(FieldVisitor fv) {
933-
super(Opcodes.ASM5, fv);
933+
super(Opcodes.ASM9, fv);
934934
}
935935

936936
@Override
@@ -958,7 +958,7 @@ public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
958958
class AnnotationVisitorWrapper extends AnnotationVisitor {
959959

960960
public AnnotationVisitorWrapper(AnnotationVisitor av) {
961-
super(Opcodes.ASM5, av);
961+
super(Opcodes.ASM9, av);
962962
}
963963

964964
@Override

vm/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<maven.compiler.source>1.5</maven.compiler.source>
2020
<maven.compiler.target>1.5</maven.compiler.target>
2121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
22-
<asm.version>5.0.3</asm.version>
22+
<asm.version>9.2</asm.version>
2323
<junit.jupiter.version>5.10.2</junit.jupiter.version>
2424
</properties>
2525

0 commit comments

Comments
 (0)