moosetechnology / Carrefour

Binding between Famix and FAST
MIT License
0 stars 2 forks source link

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

Open LABSARI opened 10 months ago

LABSARI commented 10 months ago
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 commented 3 weeks ago

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