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

SimpleConsoleLogger should protect against MissingResourceException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: