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

Brian Burkhalter brian.burkhalter at oracle.com
Thu Mar 21 19:05:24 UTC 2019


Please review this trivial fix for [0]:

@@ -237,7 +237,7 @@
      * <code>b[off+len-1]</code> unaffected.
      *
      * <p> In every case, elements <code>b[0]</code> through
-     * <code>b[off]</code> and elements <code>b[off+len]</code> through
+     * <code>b[off-1]</code> and elements <code>b[off+len]</code> through
      * <code>b[b.length-1]</code> are unaffected.
      *
      * <p> The <code>read(b,</code> <code>off,</code> <code>len)</code> method

Also, is a CSR needed for something this small? I assume so ...

Thanks,

Brian

[0] https://bugs.openjdk.java.net/browse/JDK-8078860


More information about the core-libs-dev mailing list