commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Created: (CONFIGURATION-299) Interpolation of ${const:xxx} variables can cause a ClassCastException
Date Thu, 25 Oct 2007 19:49:51 GMT
Interpolation of ${const:xxx} variables can cause a ClassCastException

                 Key: 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.

View raw message