You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature I would like to see is the order of names in exported mapping to be the same as they are declared in a class.
As I was deobfuscating a .jar and commiting updates to the mapping file...
my routine is:
load original .jar
load last mapping
change names
export mapping
...I noticed that order of fileds in exported mapping files changes everytime (I think only in in scope of Classes that just had any fields or methods mapping edited). They shuffle in unknown to me pattern.
PS. Type of mapping (proguard, simlple etc.) doesn't matter they all shuffle.
The text was updated successfully, but these errors were encountered:
The mapping system is designed to be independent of others, so it is not currently aware of the structures of classes mappings are registered for. Currently, it will export classes in natural sorted order by name, and the fields/methods of each class will be written in the order they were added to the mapping. So if you rename fields or methods in a single class such as a -> x, b -> y, and c -> z, you should see those in that exact order.
I looked at your sample and mappings and ran some tests. Reading in a mapping file and writing it back (from an API standpoint using our SimpleMappings class) yields the exact same contents as the input. My best guess at the moment is that the multi-threading in MappingApplier and updates tracked in AggregateMappings are leading to the changes you're seeing.
Bring order to exported mapping files
The feature I would like to see is the order of names in exported mapping to be the same as they are declared in a class.
As I was deobfuscating a .jar and commiting updates to the mapping file...
my routine is:
...I noticed that order of fileds in exported mapping files changes everytime (I think only in in scope of Classes that just had any fields or methods mapping edited). They shuffle in unknown to me pattern.
PS. Type of mapping (proguard, simlple etc.) doesn't matter they all shuffle.
The text was updated successfully, but these errors were encountered: