RFR: 8301627: System.exit and Runtime.exit debug logging [v4]
Roger Riggs
rriggs at openjdk.org
Thu Feb 16 20:58:27 UTC 2023
On Tue, 14 Feb 2023 13:10:41 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
>> Roger has updated this but it's still a comment on a non-public class. I think the main question here is whether there should be a note in the System.exit and Runtime.exit to document that these methods log? If not, will it be documented anywhere, maybe a troubleshooting guide to help track down what/who is calling System.exit?
>
> Another way to document that could be to add the commented logger name, and a comment, to https://github.com/openjdk/jdk/blob/master/src/java.logging/share/conf/logging.properties
> A new section at the end with some explanation on what this logger prints and how to enable it - with the appropriate wording to make it clear that it's JDK-implementation specific and not part of the spec.
I opted to add an @implNote in java.lang.Runtime.exit(). And create the corresponding CSR.
-------------
PR: https://git.openjdk.org/jdk/pull/12517
More information about the core-libs-dev
mailing list