Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4210263

(1.1) RandomAccessFile.readLine does not implement DataInput.readLine spec

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.7
    • core-libs
    • generic
    • generic



      Name: dbT83986 Date: 02/09/99


      Source code of RandomAccessFile.readLine() shows that only LF
      or EOF counts as a line-end, belying the method's doc-comment,
      and failing to meet the contract imposed by DataInput.readLine().
      In particular, lines ending in CR alone are not parsed as lines.

      The problematic code can be seen in JDK 1.1.7B or earlier.

      The problem does not appear in JDK 1.2 source.

      Presumably, there is no test for this in the compatibility tests,
      either, or something so obvious would not exist.
      (Review ID: 53977)
      ======================================================================

            iris Iris Clark
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: