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

Changes in explicit constructor invocation aren't detected #7

Open
VladyslavBondarenko opened this issue May 7, 2021 · 0 comments
Open

Comments

@VladyslavBondarenko
Copy link

DiffJ v1.6.4 doesn't see a difference between the two classes:

public class MyClass {
    public int a;

    public MyClass(int a) {
        this.a = a;
    }

    public MyClass() {
        this(1);
    }
}

and

public class MyClass {
    public int a;

    public MyClass(int a) {
        this.a = a;
    }

    public MyClass() {
        this(2);
    }
}

The difference is: this(1); => this(2);

This is a real-life case where I experience the issue.

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