commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CONFIGURATION-299) Interpolation of ${const:xxx} variables can cause a ClassCastException
Date Thu, 25 Oct 2007 20:03:50 GMT

     [ 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.


Mime
View raw message