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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.2
    • 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 - ###@###.###
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: