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

Wrong access bindings using #fastAccesses when there is a name conflict #7

Open
LABSARI opened this issue Jan 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LABSARI
Copy link

LABSARI commented Jan 12, 2024

public class A {
    int x = 5;
    public void foo(int x) {
        System.out.println(x); // Access to the parameter x
        System.out.println(this.x); // Access to the instance variable x
    }
}

When asking for accesses of x with the method #fastAccesses on the famix entity that represents the parameter x of the foo method, it also returns the reference to the instance variable (this.x).
The result should not include the access to the instance variable.

@badetitou badetitou added the bug Something isn't working label Oct 24, 2024
@badetitou
Copy link
Member

Is it because of a problem between local variable and class variable?
If so, yes it is a bug 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants