RFR: 8191441: (Process) add Readers and Writer access to java.lang.Process streams [v4]

Roger Riggs rriggs at openjdk.java.net
Fri May 28 15:07:07 UTC 2021


On Thu, 27 May 2021 06:53:18 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > Process is abstract. Is there any use for these new methods to be overridden?
> > Perhaps they should be final.
> 
> It's not clear to me that it is useful to extend Process outside of the JDK. Testing, wrapping, ...? It feels like this class wants to be sealed. Maybe we should look at deprecating the no-arg constructor, like Joe did recently with AccessibleObject.

There are subclasses, even in the test suite, see ProcessTools, so its too late to seal it;
It would be a compatibility issue. We can look at deprecation and strength reduction
but in the current time frame (RPD1) I'd suggest making the new methods final.

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

PR: https://git.openjdk.java.net/jdk/pull/4134


More information about the core-libs-dev mailing list