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

java.io.InputStream.read(byte[]) has a typo

XMLWordPrintable

    • b21
    • x86
    • windows_xp



      Name: rmT116609 Date: 08/18/2004


      A DESCRIPTION OF THE PROBLEM :

      public int read(byte[] b)
               throws IOException

      ---
      ---

      Returns:
      the total number of bytes read into the buffer, or -1 is there is no more data because the end of the stream has been reached.


      Actual:
      or -1 is there is no more..............

      Expected:
      or -1 if there is no more..............


      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html#read(byte[])
      (Incident Review ID: 297534)
      ======================================================================

            shainessunw Suzette Haines (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: