You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Steven Paligo (JIRA)" <ji...@apache.org> on 2018/03/16 05:03:00 UTC
[jira] [Created] (CONFIGURATION-691) ExprLookup only works for
expressions that evaluate to strings
Steven Paligo created CONFIGURATION-691:
-------------------------------------------
Summary: ExprLookup only works for expressions that evaluate to strings
Key: CONFIGURATION-691
URL: https://issues.apache.org/jira/browse/CONFIGURATION-691
Project: Commons Configuration
Issue Type: Improvement
Components: Interpolation
Affects Versions: 2.2
Reporter: Steven Paligo
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)