RFR: 8336479: Provide Process.waitFor(Duration)

Alan Bateman alanb at openjdk.org
Wed Jul 17 18:34:36 UTC 2024


On Wed, 17 Jul 2024 17:51:52 GMT, Chen Liang <liach at openjdk.org> wrote:

> waitFor can be overridden by pre-24 subclasses to provide a better implementation while ...

It doesn't really make sense to extend Process, except maybe for mocking or other testing. Process is really for JDK implementations, it's just historical the constructor is public. Just saying that the compatibility concerns with adding methods aren't significant here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20220#discussion_r1681554852


More information about the core-libs-dev mailing list