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

Member reference: pre and post conditions should be part of function type #801

Open
smillst opened this issue Jun 15, 2016 · 1 comment
Open

Comments

@smillst
Copy link
Member

smillst commented Jun 15, 2016

When comparing the types of method references, the the pre- and post-conditions should be considered.

In contexts such as pseudo-assignments, the pre- and post-conditions should be checked like they are when checking method overriding. Although some may not be useful because post conditions generally refer to fields (but there will be no shared fields). See test case in checker/tests/nullness/java8/methodref/Postconditions.java.

smillst added a commit that referenced this issue Jun 15, 2016
@smillst smillst added the Java8 label Jun 15, 2016
@mernst mernst added this to the Medium milestone Jun 22, 2016
@mernst mernst changed the title Member reference: check pre and post conditions Member reference: pre and post conditions should be part of function type Jun 22, 2016
@smillst
Copy link
Member Author

smillst commented Jan 30, 2018

Pre and post conditions are checked for lambdas either. See todo in org.checkerframework.common.basetype.BaseTypeVisitor#visitLambdaExpression.

@smillst smillst modified the milestones: Medium, High Feb 1, 2018
Ao-senXiong pushed a commit to opprop/checker-framework that referenced this issue Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants