-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b22
The restrictions on the implementation of the tryAdvance() method aren't entirely clear. The behavior is specified from the perspective of the caller, which is reasonable, but the requirements on the implementation aren't very explicit. The implementation is required to do ONE of the following:
1. call action.accept() ONCE and return true;
or
2. call action.accept() ZERO times and return false.
Specifically, it is not allowed to call action.accept() two or more times and then to return true.
The specification should be clarified with the above requirements.
1. call action.accept() ONCE and return true;
or
2. call action.accept() ZERO times and return false.
Specifically, it is not allowed to call action.accept() two or more times and then to return true.
The specification should be clarified with the above requirements.