[JDK 10] RFR: 8179222 SimpleConsoleLogger should protect against MissingResourceException
Daniel Fuchs
daniel.fuchs at oracle.com
Mon Apr 24 15:38:00 UTC 2017
Hi,
Please find below a patch for:
8179222 SimpleConsoleLogger should protect against
MissingResourceException
https://bugs.openjdk.java.net/browse/JDK-8179222
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8179222/webrev.00/
java.util.logging Formatters will traditionally catch
MissingResourceException when invoking ResourceBundle::getString,
and use the original key string as message if a
MissingResourceException is thrown.
The SimpleConsoleLogger however does not have this logic and will
throw a MissingResourceException in that case.
For the sake of uniformity it would be better if SimpleConsoleLogger
behaved in the same way that java.util.logging does, even though
there's currently no code in the JDK (that I know of) which might
trigger this issue.
best regards,
-- daniel
More information about the core-libs-dev
mailing list