Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8179222

SimpleConsoleLogger should protect against MissingResourceException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 9
    • core-libs
    • None

      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.
      Also System.Logger::log doesn't have any @throws MissingResourceException.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: