proguard icon indicating copy to clipboard operation
proguard copied to clipboard

Wrong result for `x.class.getName()`

Open zufuliu opened this issue 5 years ago • 0 comments

Assuming class/interface Abc is obfuscated to a, the call Abc.class.getName() is then changed to a.class.getName() with is incorrect, the result no longer equals.

This still occurred with 6.2.2, I think a better result would optimize it to the result string like Abc, or print a warning when no rule is specified for the class/interface name.

zufuliu avatar Jan 20 '20 03:01 zufuliu