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

[configuration] setting non-string values in DatabaseConfiguration always throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: other
      Platform: Other

    • 30676

    Description

      It would seem that setting any non-string configuration property with a
      DatabaseConfiguration object always throws ClassCastException. I have only
      experienced this issue with Boolean values, but examining the code it would seem
      that the class makes an explicit cast to type String for all set actions. See
      patch for test case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rgladwell Ricardo Gladwell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: