-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.0
-
None
Steps to Reproduce
https://zkfiddle.org/sample/3b89sim/1-ForEachStatus
Check the result
Current Result
The last is always false.
Expected Result
Only the last row is true, otherwise false.
Debug Information
public boolean isLast() { return getIndex() == getEnd(); }
The expression is always false since the end value can't be reached. 18 != 20.
https://github.com/javaee/jstl-api/blob/jstl-1.2/api/src/main/java/javax/servlet/jsp/jstl/core/LoopTagSupport.java#L555
JSTL handles this case properly