Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported class file major version 65 #770

Closed
cconde opened this issue Mar 27, 2024 · 2 comments
Closed

Unsupported class file major version 65 #770

cconde opened this issue Mar 27, 2024 · 2 comments
Labels
2.X 3rd party problem A bug/problem but caused by a library

Comments

@cconde
Copy link

cconde commented Mar 27, 2024

Issue

I'm receiving unexpected message: Unsupported class file major version 65

I can't send sample as I can't distribute the jar I'm trying to open, sorry.
Just after opening the jar I want to edit it I get that exception, and bytecode editing with assembler fails.

Probably I'm doing wrong, but I tested with different JDKs and I'm lost what to do next.

Exception

19:02:09.739 [ForkJoinPool-1-worker-2] DEBUG: Begin generating phantom classes, given 261 input classes
19:02:09.769 [ForkJoinPool-1-worker-2] ERROR: Failed to analyze phantom references for primary resource
java.lang.IllegalArgumentException: Unsupported class file major version 65
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:199)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:180)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:298)
        at me.coley.recaf.workspace.PhantomResource.createMembers(PhantomResource.java:121)
        at me.coley.recaf.workspace.PhantomResource.populatePhantoms(PhantomResource.java:78)
        at me.coley.recaf.workspace.Workspace.lambda$analyzePhantoms$0(Workspace.java:160)
        at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1403)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)```

@xxDark
Copy link
Collaborator

xxDark commented Mar 27, 2024

Update ASM version in build file. 2.x version is not supported.

@xxDark xxDark added 3rd party problem A bug/problem but caused by a library 2.X labels Mar 27, 2024
@Col-E
Copy link
Owner

Col-E commented May 19, 2024

Recaf 2.21.4 will be the last iteration of 2.X until we stabilize 4.X. It has an updated ASM that should address this.

@Col-E Col-E closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.X 3rd party problem A bug/problem but caused by a library
Projects
None yet
Development

No branches or pull requests

3 participants