Public bug reported:

$ jardiff -f old/usr/share/java/tomcat10-embed-core-10.1.16.jar -t 
old/usr/share/java/tomcat10-embed-core-10.1.16.jar
java.lang.UnsupportedOperationException: NestHost requires ASM7
        at org.objectweb.asm.ClassVisitor.visitNestHost(ClassVisitor.java:174)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:587)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:425)
        at org.osjava.jardiff.JarDiff.loadClassInfo(JarDiff.java:194)
        at org.osjava.jardiff.JarDiff.loadClasses(JarDiff.java:257)
        at org.osjava.jardiff.JarDiff.loadOldClasses(JarDiff.java:293)
        at org.osjava.jardiff.Main.main(Main.java:238) 

Just for demonstration the same jar has been used:
http://launchpadlibrarian.net/700742608/libtomcat10-embed-
java_10.1.16-1_all.deb.

Tested on source pkg: noble 0.2-5.1

Bumping version of libasm-java maybe required.

But, the source code is still using ASM5:

jardiff-0.2/src/java/org/osjava/jardiff/ClassInfoVisitor.java:
super(Opcodes.ASM5);

```
   public ClassInfoVisitor() {
        super(Opcodes.ASM5);
    }

```

So, to support latest versions of java, ASM version needs to bumped to
use ASM7 or above (Java 11 support would be nice)

** Affects: jardiff (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111334

Title:
  UnsupportedOperationException: NestHost requires ASM7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jardiff/+bug/2111334/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to