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

Roger Riggs Roger.Riggs at oracle.com
Thu Mar 21 20:54:28 UTC 2019


+1

And I don't think a CSR is warranted,  The text being modified
does not change the behavior, it makes a statement about what
the method does not do. (Which is pretty obvious).

Roger

On 03/21/2019 03:23 PM, Lance Andersen wrote:
> +1
>> On Mar 21, 2019, at 3:05 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>>
>> 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
>   <http://oracle.com/us/design/oracle-email-sig-198324.gif>
>   <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
>   <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
> Oracle Java Engineering
> 1 Network Drive
> Burlington, MA 01803
> Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
>
>
>



More information about the core-libs-dev mailing list