FabricMC / Enigma

This is a fork of cuchaz's Enigma, a deobfuscation/remapping tool for Java software.
GNU Lesser General Public License v3.0
426 stars 112 forks source link

Duplicate member names - consider using --renamedupmembers true #501

Open Philosoph228 opened 1 year ago

Philosoph228 commented 1 year ago

I got this warning:

/*
 * Decompiled with CFR 0.2.0 (FabricMC d28b102d).
 *  …
 */

/*
 * Duplicate member names - consider using --renamedupmembers true
 */

I can't export the valid source, because the member names are the same for various types, like int a; String a;. How to pass CFR options into Enigma-swing? _.options file won't work.

minexew commented 1 year ago

Note that according to [1], --renamedupmembers does not fix up references made by other classes, which limits its usefulness.

(It would be fantastic to have this as a native capability in Enigma)

[1] footnote at https://www.benf.org/other/cfr/obfuscation_field_renaming.html