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

RFE: ResourceBundles needs a hasKey method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • None

      ResourceBundle.getObject will throw an exception if the value does not exist. Throwing an exception is an expensive operation and thus it would be better to either offer a method that doesn't throw an exception, or returns true if the key exists so as to avoid the exception throwing.

            nlindenbsunw Norbert Lindenberg (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: