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

(spec) InputStream.read(byte[] b, int off, int len) claims to not affect element b[off]

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14

      Description

      Thanks to [~rriggs] this very old mistake's been noticed:

           * <p> In every case, elements <code>b[0]</code> through
      --> * <code>b[off]</code> and elements <code>b[off+len]</code> through
           * <code>b[b.length-1]</code> are unaffected.

      It should've been:

      java.io.InputStream#read(byte[], int, int)

           * <p> In every case, elements <code>b[0]</code> through
      --> * <code>b[off-1]</code> and elements <code>b[off+len]</code> through
           * <code>b[b.length-1]</code> are unaffected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bpb Brian Burkhalter
              Reporter:
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: