RFR: 8303392: Runtime.exec and ProcessBuilder.start should use System logger [v5]

Sean Mullan mullan at openjdk.org
Fri Mar 10 17:55:16 UTC 2023


On Fri, 10 Mar 2023 15:27:54 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> Runtime.exec and ProcessBuilder.start methods create a new operating system process with the program and arguments. Many applications configure a logging subsystem to monitor application events. Logging a process start message with the program, arguments, and stack trace can identify the caller and purpose.
>> Logging the process start event is complementary to the process start event generated for JFR (Java Flight Recorder).
>
> Roger Riggs has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Fix one more implNote in Runtime
>  - Improve implNote text in Runtime and ProcessBuilder

src/java.base/share/classes/java/lang/ProcessBuilder.java line 1302:

> 1300:      *
> 1301:      * @implNote
> 1302:      * Each created process is logged, see {@link ProcessBuilder#start()} for details.

This reads as if it is logged by default. Perhaps reword as "Logging of the created process can be enabled, see ..."

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

PR: https://git.openjdk.org/jdk/pull/12862


More information about the core-libs-dev mailing list