RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v13]

Sergey Tsypanov stsypanov at openjdk.org
Wed Dec 13 09:50:45 UTC 2023


On Wed, 13 Dec 2023 09:09:29 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Sergey Tsypanov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8320971: Fix JavaDoc
>
> src/java.base/share/classes/com/sun/io/IOStreams.java line 26:
> 
>> 24:  */
>> 25: 
>> 26: package com.sun.io;
> 
> The starting point for this PR is getting agreement to relax the checks in BufferedInputStream.transferTo so ideally the changes would be limited to that one method initially. If you really want a supporting utility class then a non-public class like java.io.TransferSupport or something like that would be easier to discuss. We don't need to adding a new package com.sun.io for this.
> 
> I think drop  j.u.zip.CheckedOutputStream from the initial discussion as it it "too far away" to be in the mix at this point.

So what is the target package for this utility class?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1425104701


More information about the core-libs-dev mailing list