Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obfuscation causes Class.getEnumConstants to return null. #17

Open
ianthedead opened this issue Nov 22, 2021 · 1 comment
Open

Obfuscation causes Class.getEnumConstants to return null. #17

ianthedead opened this issue Nov 22, 2021 · 1 comment
Labels
bug Something isn't working legacy old bozar

Comments

@ianthedead
Copy link

ianthedead commented Nov 22, 2021

(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 ianthedead added the bug Something isn't working label Nov 22, 2021
@ianthedead
Copy link
Author

ianthedead commented Nov 23, 2021

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

@vimasig vimasig added the legacy old bozar label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working legacy old bozar
Projects
None yet
Development

No branches or pull requests

2 participants