Bozar icon indicating copy to clipboard operation
Bozar copied to clipboard

Obfuscation causes Class.getEnumConstants to return null.

Open ianthedead opened this issue 3 years ago • 1 comments

(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 avatar Nov 22 '21 23:11 ianthedead

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

ianthedead avatar Nov 23 '21 00:11 ianthedead