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

There are 2 different ConfigurationBuilder interfaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha1
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      (This is my first time entering a bug here; at least searching with ConfigurationBuilder here did not bring any relevant issues so I wanted to post this)

      There are 2 different ConfigurationBuilder interfaces:
      one is org.apache.commons.configuration2.ConfigurationBuilder and other is
      org.apache.commons.configuration2.builder.ConfigurationBuilder

      The base package has

      Configuration 	getConfiguration()
      

      while the builder package has

      T 	getConfiguration()
      

      and the (<T extends Configuration> as generic parameter in the interface)

      I assume this is a bug, since nothing implements the base package one and all ConfigurationBuilder implementations implement the one in the builder subpackage. It is at least confusing in case the base package one is intended just for clients to implement. Also documentation points to the builder package one.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bjakke Bjarne Boström
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: