-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add useResolvedOwners option to swap the owner in member accesses with the resolved class #90
base: master
Are you sure you want to change the base?
Conversation
ea14cb9
to
f15781a
Compare
/** | ||
* Whether to use the resolved owner class instead of the current class for member accesses. | ||
*/ | ||
public Builder useResolvedOwners(boolean value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we only use the CLI, could you add a new CLI option for this, please? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, on it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :)
…h the resolved class. Original fix by @KabanFriends and reported by @kennytv in FabricMC#87
19fa561
to
b0bee1f
Compare
b0bee1f
to
d2539ff
Compare
Upon testing I get a different error now: Stacktrace
we believe this is similar to what we fix for fields here https://github.com/PaperMC/paperweight/blob/489ab48d996f47d10d2e835e0f08c8716df41c5c/paperweight-lib/src/main/kotlin/tasks/FixJarForReobf.kt#L132 |
Fixes #87 and supersedes #89 with a more extensive approach that covers fields and interface methods as well since those could suffer from the same issue. It also makes the new behavior opt in (for now)