Recaf icon indicating copy to clipboard operation
Recaf copied to clipboard

Classes are not decompiled

Open passthesh3ll opened this issue 1 year ago • 5 comments

Describe the bug

Classes are not decompiled when using jdk11-openjdk (11.0.21.u9-3) in archlinux. I installed have also jdk17-openjdk (17.0.9.u8-2) installed. Can I force the jdk17 or jdk21 startup? Maybe the problem is a jdk version. image

To Reproduce

Steps to reproduce the behavior:

  1. Install jdk11-openjdk in archlinux
  2. Open a JAR file in Recaf
  3. Classes are not decompiled

Exception

➜  ~ recaf --input='/home/main/Scrivania/test-1.11.0.jar'
Nov 15, 2023 2:38:50 PM com.sun.javafx.application.PlatformImpl startup
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @e580929'

Screenshots

image

passthesh3ll avatar Nov 15 '23 13:11 passthesh3ll

  1. I cannot do anything without the sample causing the problem, based on other similar reports in the past I assume this is a specific issue to the sample and not JAR files at large.
  2. Some samples target ZIP parsing logic to prevent recognition of classess. We've done a lot of extra work in 3/4x to address this, and not much has been ported back to 2x.

Col-E avatar Nov 15 '23 15:11 Col-E

the sample is cryptomator 1.11 binary

passthesh3ll avatar Nov 15 '23 16:11 passthesh3ll

My instinct (without looking into the jar) tells me it is because of old ASM which is not capable of newer bytecode versions. Can you please try 3x instead?

Amejonah1200 avatar Nov 15 '23 16:11 Amejonah1200

3x is working correctly, is there any chance to get the same behavior also in the standard build?

passthesh3ll avatar Nov 15 '23 17:11 passthesh3ll

Most likely the dependencies needs to be updated. Can you tell us what features are missing in 3x?

Amejonah1200 avatar Nov 15 '23 17:11 Amejonah1200

Closing as 4.X is the only branch we're working on going forward. This is addressed in 3.X and 4.X branches.

Col-E avatar May 19 '24 21:05 Col-E