Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-438

JNDIConfiguration logs Exception when prefix does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.6, Nightly Builds
    • 1.7
    • Events & Notifications
    • None

    Description

      A JNDIConfiguration logs an exception when it's prefix does not exist and getKeys() is called. This is for instance the case when a JNDIConfiguration is used in a DefaultConfigurationBuilder. It does not log an exception when a key does not exist when using getProperty() (that was fixed in issue #44). This seems like an inconsistency to me. Attached patch fixes the problem by ignoring the NameNotFoundException.

      Attachments

        1. namenotfoundexception-correct.patch
          0.6 kB
          Mike Noordermeer
        2. namenotfoundexception.patch
          3 kB
          Mike Noordermeer

        Activity

          People

            oheger Oliver Heger
            miken Mike Noordermeer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: