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

Possible ClassCastException in CompositeConfiguration if a special in-memory configuration is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.8
    • None
    • None

    Description

      Some methods of CompositeConfiguration expect that the in-memory configuration is of type BaseConfiguration (a configuration of this type is created if no specific in-memory configuration was provided).

      However, there are constructors accepting an arbitrary Configuration object as in-memory configuration. If here a configuration is specified which does not extend BaseConfiguration, the casts performed by these methods will fail. The casts should only be performed if possible.

      The following methods are affected:

      • setListDelimiter()
      • setDelimiterParsingDisabled()

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: