On Thu, 27 May 2021 06:53:18 GMT, Alan Bateman <al...@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