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

Check if duplicate fields map correctly #31

Open
immibis opened this issue Aug 16, 2014 · 1 comment
Open

Check if duplicate fields map correctly #31

immibis opened this issue Aug 16, 2014 · 1 comment

Comments

@immibis
Copy link
Owner

immibis commented Aug 16, 2014

According to @skyboy, if a class has a field with the same name (and maybe descriptor?) as a superclass, it will be remapped incorrectly. EG:

class A {int a;}
class B extends A {int a;}

where A/a:I has a mapping and B/a:I doesn't, it shouldn't use the A/a mapping for B/a, but does it?

@skyboy
Copy link

skyboy commented Aug 16, 2014

More elaborately: accesses to B/a will get remapped to A/a, which may then fail due to modifiers like private and final. The structure I had it in was of this fashion:

class A {private int a;}
class B {private static int a; static void init(){a = 0;}}

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

2 participants