[9] RFR: 8177835: System.LoggerFinder#getLogger or getLocalizedLogger does not throw NPE

Daniel Fuchs daniel.fuchs at oracle.com
Fri Mar 31 12:28:16 UTC 2017


Hi,

Please find below a trivial fix for a JCK conformance issue:

https://bugs.openjdk.java.net/browse/JDK-8177835
8177835: System.LoggerFinder#getLogger or getLocalizedLogger does
          not throw NPE

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8177835/webrev.00

The issue is only apparent if you directly call
System.LoggerFinder.getLoggerFinder().getLogger(null,module)
when java.logging is not present.

The regular System.getLogger methods and the java.logging
implementation of LoggerFinder already do the null check.

Because this is a conformance issue I will ask for approval
to fix this in 9

best regards,

-- daniel


More information about the core-libs-dev mailing list