vimasig / Bozar

Java bytecode obfuscator with GUI
MIT License
152 stars 19 forks source link

Obfuscation causes Class.getEnumConstants to return null. #17

Open ianthedead opened 2 years ago

ianthedead commented 2 years ago

(occurs on version 1.7.0)

while the type of the class remains an enum, the enum constants in the class become regular fields.

also, (public enum a) becomes (public class a extends Enum)

ianthedead commented 2 years ago

Update: The issue happens with the MethodRenamerTransformer, ConstantTransformer and possibly some others, But it does not happen with the FieldRenamerTransformer or ClassRenamerTransformer, which is all I care about obfuscating when it comes to enums