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

java.io.ByteArrayInputStream.mark(markpos) -- parameter misleadingly named

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1.1, 1.1.2, 1.1.8
    • Fix Version/s: 1.2.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.2beta3
    • CPU:
      generic, x86
    • OS:
      generic, solaris_2.5, windows_nt
    • Verification:
      Not verified

      Description

      java.io.InputStream uses the int parameter to mark as a readlimit. java.io.ByteArrayInputStream uses it as a position. The resultant resets have very different semantics. We need to be consistent with the JLS across the board.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zlisunw Zhenghua Li (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: