On Wed, 17 May 2023 17:08:34 GMT, Roger Riggs <rri...@openjdk.org> wrote:

>> Volker Simonis has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   REALLY adding the test :)
>
> test/jdk/java/lang/ProcessBuilder/JspawnhelperProtocol.java line 116:
> 
>> 114:         int ret = p.exitValue();
>> 115:         if (ret == 0) {
>> 116:             throw new Exception("Expected error in child execution");
> 
> Mixing the two styles of error reporting seems a bit odd, some throw 
> exceptions and others just exit.
> Being consistent throwing an exception with a message would be better.

Good point. Changed the exits to exceptions except in `childCode()` where we 
need `System.exit()` in order to communicate different error states back to the 
parent process.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13956#discussion_r1200069183

Reply via email to