-
Bug
-
Resolution: Fixed
-
P4
-
14
-
b10
-
generic
-
generic
As described in JDK-8230342, the results of getLineNumber() were inconsistent after reaching EOF depending on the methods used to read. The fix for JDK-8230342, although correct per the specification of LineNumberReader, however caused unexpected behavior for a typical use case of getLineNumber() such as described in JDK-8235668 thereby breaking existing code. Consistency of behavior with respect to EOF should instead be achieved without breaking such code. This might for example be possible by modifying the specification of LineNumberReader to state that the line number is also incremented at EOF, perhaps only provided a line terminator is not that last entity prior to the EOF.
- csr for
-
JDK-8241020 LineNumberReader.getLineNumber() behavior is inconsistent with respect to EOF
-
- Closed
-
- relates to
-
JDK-8230342 LineNumberReader.getLineNumber() returns inconsistent results after EOF
-
- Resolved
-
-
JDK-8235668 LineNumberReader#getLineNumber() returns wrong line number (one fewer) in Lucene test
-
- Closed
-
- links to
(1 links to)
There are no Sub-Tasks for this issue.