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

Mandy Chung mandy.chung at oracle.com
Fri Jun 28 22:43:03 UTC 2013


On 6/28/2013 9:32 AM, Daniel Fuchs wrote:
> 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.
>

This change looks reasonable and another good test (thanks).   This fix 
is good to backport to 7u-dev after it's in jdk8

thanks
Mandy



More information about the core-libs-dev mailing list