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

Interpolation of ${const:xxx} variables can cause a ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • None

    Description

      If ConstantLookup is used for resolving a variable that is of a different type than String, a ClassCastException can be thrown:

      The first access to this variable obtains the value and stores it in an internal cache. If this variable is requested again, the value is fetched from the cache and a type cast to String is performed. This will fail with a ClassCastException.

      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: