Skip to content

Migrate from ASM to Class-File API #474

@Goooler

Description

@Goooler

We can always get the latest JDK support without having to wait for ASM updates. Fixes errors like:

Exception in thread "main" java.lang.IllegalArgumentException: Unsupported class file major version 69
  at org.objectweb.asm.ClassReader.<init>(ClassReader.java:200)
  at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180)
  at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
  at com.jakewharton.diffuse.format.Class$Companion.parse(Class.kt:28)
  at com.jakewharton.diffuse.format.Jar$Companion.parse(Jar.kt:26)
  at com.jakewharton.diffuse.DiffCommand$inputOptions$2.parse(diffuse.kt:180)
  at com.jakewharton.diffuse.DiffCommand.run(diffuse.kt:195)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:279)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:292)
  at com.github.ajalt.clikt.parsers.Parser.parse(Parser.kt:41)
  at com.github.ajalt.clikt.core.CliktCommand.parse(CliktCommand.kt:457)
  at com.github.ajalt.clikt.core.CliktCommand.parse$default(CliktCommand.kt:454)
  at com.github.ajalt.clikt.core.CliktCommand.main(CliktCommand.kt:474)
  at com.jakewharton.diffuse.Diffuse.main(diffuse.kt:60)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions