You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Oliver Heger (JIRA)" <ji...@apache.org> on 2007/10/25 21:49:51 UTC
[jira] Created: (CONFIGURATION-299) Interpolation of ${const:xxx}
variables can cause a ClassCastException
Interpolation of ${const:xxx} variables can cause a ClassCastException
----------------------------------------------------------------------
Key: CONFIGURATION-299
URL: https://issues.apache.org/jira/browse/CONFIGURATION-299
Project: Commons Configuration
Issue Type: Bug
Affects Versions: 1.4
Reporter: Oliver Heger
Assignee: Oliver Heger
Fix For: 1.5
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CONFIGURATION-299) Interpolation of ${const:xxx}
variables can cause a ClassCastException
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-299.
----------------------------------------
Resolution: Fixed
A fix was applied for this issue.
> Interpolation of ${const:xxx} variables can cause a ClassCastException
> ----------------------------------------------------------------------
>
> Key: CONFIGURATION-299
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-299
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.4
> Reporter: Oliver Heger
> Assignee: Oliver Heger
> Fix For: 1.5
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.