RFR 9 8055330: (process spec) ProcessBuilder.start and Runtime.exec should throw UnsupportedOperationException ...

Martin Buchholz martinrb at google.com
Fri Jan 30 17:44:08 UTC 2015

Seems OK, but:

UOE should be specified in ProcessBuilder if and only if it is also
specified for the Runtime.exec family of methods, since they are wrappers
around ProcessBuilder.

Because there are so many methods, it may be better to have a blanket UOE
disclaimer added to the class descriptions instead - adding UOE to every
process-related method exceeds the normal bar for pedantry in the JDK

On Fri, Jan 30, 2015 at 7:58 AM, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> Please review this clarification to the optional behavior of
> java.lang.Runtime and java.lang.ProcessBuilder
> on platforms that don't support process creation.
> Webrev:
>   http://cr.openjdk.java.net/~rriggs/webrev-process-8055330/
> Issue:
>  8055330 https://bugs.openjdk.java.net/browse/JDK-8055330
> ps: approved by CCC

More information about the core-libs-dev mailing list