On Tue, 14 Feb 2023 18:56:29 GMT, Roger Riggs <rri...@openjdk.org> wrote:

>> It can be difficult to find the cause of calls to 
>> `java.lang.System.exit(status)` and `Runtime.exit(status)` because the Java 
>> runtime exits.
>> The status value and stack trace are logged using the System Logger named 
>> `java.lang.Runtime` with message level `System.Logger.Level.DEBUG`.
>
> Roger Riggs has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Correct System.getLogger link

src/java.base/share/classes/java/lang/Runtime.java line 160:

> 158:      *
> 159:      * @implNote
> 160:      * If the {@link System#getLogger(String) 
> System.getLogger("java.lang.Runtime")}

It may read better to use a textual description for the link, like "the system 
logger for `java.lang.Runtime`".

src/java.base/share/classes/java/lang/Runtime.java line 161:

> 159:      * @implNote
> 160:      * If the {@link System#getLogger(String) 
> System.getLogger("java.lang.Runtime")}
> 161:      * is enabled for logging level {@link System.Logger.Level#DEBUG 
> Level.DEBUG} the stack trace

"with logging level"?

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

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

Reply via email to