Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 61415 invoked from network); 25 Aug 2004 09:34:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Aug 2004 09:34:07 -0000 Received: (qmail 90454 invoked by uid 500); 25 Aug 2004 09:34:03 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 90386 invoked by uid 500); 25 Aug 2004 09:34:03 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 90373 invoked by uid 99); 25 Aug 2004 09:34:03 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 25 Aug 2004 02:34:01 -0700 Received: (qmail 4201 invoked by uid 50); 25 Aug 2004 09:35:40 -0000 Date: 25 Aug 2004 09:35:40 -0000 Message-ID: <20040825093540.4200.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 30839] - [configuration] ClassCastException in XMLConfiguration X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30839 [configuration] ClassCastException in XMLConfiguration ------- Additional Comments From hermod.opstvedt@dnb.no 2004-08-25 09:35 ------- That should of course be : Element child = document. createElement(nodes[nodes.length - 1]); parent.appendChild(child); if (attName == null) { CharacterData data = document.createTextNode(value.toString()); child.appendChild(data); } else { child.setAttribute(attName, value.toString); } --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org