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

The java.io.PipedInputStream specification does not describe available() method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.0.2
    • docs
    • sparc
    • solaris_2.5



      Name: saf@russia Date: 09/06/96


      This bug was found by St.Petersburg Java SQE team (by Stanislav Avzan).

      The Java Language specification (Version 1.0 - August 1, 1996) does not describe
      public int available() method of class java.io.PipedInputStream.

      It is seen from the source code that java.io.PipedInputStream class overrides
      available method of java.io.InputStream so that it returns the actual number of
      bytes available instead of 0.
      However, specification does not mention this fact (see item 22.5, p.687).

      Workaround:
      None
      ======================================================================

            duke J. Duke
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: