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

CombinedConfiguration#getKeys() can throw NoSuchElementException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.9.0
    • None
    • None
    • Java 11

    Description

      AbstractConfiguration#getKeys() can throw NoSuchElementException for certain configurations. Example is below, note addConfiguration(conf1, null, "") where at argument is blank.

      BaseConfiguration conf1 = new BaseConfiguration();
      conf1.addProperty("x1", 1);
      
      CombinedConfiguration conf2 = new CombinedConfiguration();
      conf2.addConfiguration(conf1, null, "");
      
      // Following line throws NoSuchElementException
      conf2.getKeys();
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jpsacha Jarek Sacha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment