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

Method calls on super vs this #1098

Open
wmdietl opened this issue Feb 6, 2025 · 1 comment
Open

Method calls on super vs this #1098

wmdietl opened this issue Feb 6, 2025 · 1 comment

Comments

@wmdietl
Copy link
Member

wmdietl commented Feb 6, 2025

#1097 changes dataflow/src/main/java/org/checkerframework/dataflow/expression/MethodCall.java and treats this and super receivers as equal.
Is that sound?

@wmdietl
Copy link
Member Author

wmdietl commented Feb 6, 2025

Also, hashCode for both ThisReference and SuperReference always returns zero. Why not depend on the type?

Should equals ensure the type is the same, instead of being equal to all other reference of the same kind?

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