Skip to content
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

[IDE] Crash due to class X overrides final method net.minecraft.client.gui.widget.PressableWidget.getTextureY()I #96

Open
Sollace opened this issue Mar 31, 2024 · 0 comments

Comments

@Sollace
Copy link

Sollace commented Mar 31, 2024

I encountered this issue when adding a dependency to my project that uses PortingLib. What seems to be happening is PortingLib is taking private [non-final] methods and changing them to be public/protected + final.

In an obfuscated environment, this appears to work fine, but in a non-obfuscated one this causes problems because the access-widened method may end up having the same name as one declared in an overriding class further down-stream as is the case with one of my other dependencies.

I will be fixing it in my case in the downstream project, however I'm also filing this issue to give you notice that this issue might arise with other projects, and you probably should not be using transitive-accessible.

The offending AW can be found here:

transitive-accessible method net/minecraft/client/gui/components/AbstractButton getTextureY ()I

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant