-
Notifications
You must be signed in to change notification settings - Fork 355
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
Initialize implicit this. #6908
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@smillst Tests are failing. |
The following test case is failing: @EnsuresNonEmptyIf(result = false, expression = "this")
public boolean isEmpty2() {
return size() == 0 ? true : false;
} With the error:
And I'm wondering now if it's still a valid test case. Is there enough information to determine whether the container is indeed non-empty in the case that this method returns For context, the implementation of @Pure
@Override
public int size() {
return -1;
} Which overrides the |
I think it is. The non-empty checker is assuming that size is implemented correctly. Also the other two similar test cases in that file still pass.
So I think this failure indicates a bug somewhere in dataflow. Conditional expressions have a different implementation than if statements in dataflow. I'm working on this now. |
@smillst I see, thanks! |
No description provided.