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

LOGGING APIs: Logger.logrb() methods don't throw MissingResourceException

XMLWordPrintable

    • b26
    • generic, sparc
    • generic, solaris_7
    • Verified

      This is duplicated from 4500773

      The Logging APIs specification for all the Logger.logrb(...) methods says:

      "...
      Throws:
             java.util.MissingResourceException - if no suitable ResourceBundle can be found.
      ..."

      However, the NSK logrbTest shows that

      Logger.logrb(Level level,
                   String sourceClass,
                   String sourceMethod,
                   String source bundleName,
                   String msg)

      method does not throw expected MissingResourceException while execution under
      the engineering JDK build with the logging API changes according
      to RFE's

      The NULL case has been corrected in javadoc but empty and non-resource bundle strings are still accepted without throwing MissingResourceException as per the spec

            caustinsunw Calvin Austin (Inactive)
            caustinsunw Calvin Austin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: