RFR 8026499: Root Logger level can be reset unexpectedly

Daniel Fuchs daniel.fuchs at oracle.com
Tue Oct 15 16:48:34 UTC 2013


Hi,

Please find below a fix for:

     8026499: Root Logger level can be reset unexpectedly
     https://bugs.openjdk.java.net/browse/JDK-8026499

<http://cr.openjdk.java.net/~dfuchs/webrev_8026499/webrev.00/>

The issue here is that calling a method like e.g. URL.openConnection()
will trigger the initialization of some platform logger, which could
in turn cause the root logger to be lazilly added to the system context,
which in turn causes the root logger's level to be reset with the
value found in the configuration file (INFO).

The fix is to not reinitialize the value of the logger's level if
it already has been initialized.

As usual, the test fails without the fix and passes with it.

best regards,

-- daniel



More information about the core-libs-dev mailing list