Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 7346 invoked from network); 25 Oct 2007 20:04:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Oct 2007 20:04:14 -0000 Received: (qmail 22493 invoked by uid 500); 25 Oct 2007 20:04:01 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 22256 invoked by uid 500); 25 Oct 2007 20:04:01 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 22247 invoked by uid 99); 25 Oct 2007 20:04:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 13:04:01 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2007 22:04:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9058F714209 for ; Thu, 25 Oct 2007 13:03:50 -0700 (PDT) Message-ID: <31779212.1193342630587.JavaMail.jira@brutus> Date: Thu, 25 Oct 2007 13:03:50 -0700 (PDT) From: "Oliver Heger (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (CONFIGURATION-299) Interpolation of ${const:xxx} variables can cause a ClassCastException In-Reply-To: <5609686.1193341791926.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on 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.