leibnitz27 / cfr

This is the public repository for the CFR Java decompiler
https://www.benf.org/other/cfr
MIT License
1.93k stars 249 forks source link

module-info cannot be decompiled after packing into jar #335

Open itsTyrion opened 1 year ago

itsTyrion commented 1 year ago

CFR version

0.152

Compiler

javac 17.0.3 from Azul Zulu (I need JavaFX)

Description

I patched in module info so I can use jlink according to this stackoverflow comment The resulting module-info.class can be decompiled before packing, but not after packing and extracting O_o

Can't load the class specified:
org.benf.cfr.reader.util.CannotLoadClassException: .\module-info.class - org.benf.cfr.reader.util.ConfusedCFRException: Attempt to fetch element 0 from constant pool

Example

module-info java + classes.zip