RFR: 8017174 - NPE when using Logger.getAnonymousLogger or LogManager.getLogManager().getLogger

Daniel Fuchs daniel.fuchs at oracle.com
Fri Jun 28 16:32:44 UTC 2013


Hi,

Please find below a patch for jdk8 for:

8017174 - NPE when using Logger.getAnonymousLogger or 
LogManager.getLogManager().getLogger

<http://cr.openjdk.java.net/~dfuchs/JDK-8017174/webrev-jdk8.00/>

The issue was that the lazy initialization of LoggerContext was
not working correctly - leading to applets seeing a partially
initialized tree where the root logger hadn't been added
yet - hence the NPE - as the root logger was unexpectedly null.


best regards,

-- daniel



More information about the core-libs-dev mailing list