Bozar
Bozar copied to clipboard
Obfuscation causes Class.getEnumConstants to return null.
(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)
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