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

ExprLookup only works for expressions that evaluate to strings

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: Interpolation
    • Labels:
      None

      Description

      ExprLookup only works when the expression evaluates to a string. The doLookup(...) method casts the result to a string, which triggers a ClassCastException when it isn't.

      This is unnecessary. The Lookup interface allows for any object to be returned. Also, non-string expressions are entirely useful.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              spaligo Steven Paligo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: