java.io.ByteArrayInputStream.mark(markpos) method is broken

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.2
    • Component/s: core-libs
    • None
    • x86
    • windows_nt



      Name: joT67522 Date: 08/25/97


      The following code in ByteArrayInputStream...

          /**
           * Set the current marked position in the stream.
           * ByteArrayInputStreams are marked at position zero by
           * default when constructed. They may be marked at another
           * position within the buffer by this method.
           *
           * @since JDK1.1
           */
          public void mark(int markpos) {
      mark = pos;
          }

      ...should probably be:
          /**
           * Set the current marked position in the stream.
           * ByteArrayInputStreams are marked at position zero by
           * default when constructed. They may be marked at another
           * position within the buffer by this method.
           *
           * @since JDK1.1
           */
          public void mark(int markpos) {
      mark = markpos;
          }



      company - Virtual Gaming Technologies, Inc. , email - ###@###.###
      ======================================================================

            Assignee:
            Mark Reinhold
            Reporter:
            Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: