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

Contract checking does not check for proper overriding #803

Open
msridhar opened this issue Aug 12, 2023 · 0 comments
Open

Contract checking does not check for proper overriding #803

msridhar opened this issue Aug 12, 2023 · 0 comments

Comments

@msridhar
Copy link
Collaborator

msridhar commented Aug 12, 2023

Our checking of @Contract annotations (which is off by default) does not check for correct method overriding. So, if a supertype method has a particular @Contract, we do not check that overriding methods adhere to the @Contract, which could lead to missed NPE bugs. Originally discussed here.

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