Col-E / Col-E/Recaf

Order in mapping files

Open
#883 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
7.4k
Forks
538
PR merge metrics
No merged PRs in 30d

Description

## 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](https://github.com/Deep-0pen/DeepOpen-public/commits/main/Recaf/GoF2/GoF2_JSR_1.0.4.mapping)...

_my routine is:_
1. _load original .jar_
2. _load last mapping_
3. _change names_
4. _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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.