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

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • None
    • Affects Version/s: 1.1.7
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: