8228392: java.io.Filter{In,Out}put stream constructors should allow null stream parameter

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jul 19 14:58:09 UTC 2019

> On Jul 18, 2019, at 11:22 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> On 18/07/2019 21:01, Brian Burkhalter wrote:
>> :
>> A patch which backs out the java.io.Filter{In,Out}put stream constructors null underlying stream check (and consequent changes) is at [1].
>> A tier 1-3 test run is in progress.
>> Thanks,
>> Brian
>> [1] http://cr.openjdk.java.net/~bpb/8228392/webrev.01/ <http://cr.openjdk.java.net/~bpb/8228392/webrev.01/>
> The backout looks good. The follow-up issue will need a CSR as there are significant compatibility issues that will need to be agreed.

Given the compatibility issues it might be best to modify the specifications of the Filter*Stream subclass constructors to allow a null underlying stream parameter, thereby overriding the package level javadoc. IOTW align the spec with longstanding behavior.


More information about the core-libs-dev mailing list