Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 98040 invoked from network); 9 May 2003 19:10:09 -0000 Received: from ip196.arborofficecenters.com (HELO mail.stone-ware.com) (216.136.78.196) by daedalus.apache.org with SMTP; 9 May 2003 19:10:09 -0000 Received: from StonewareDom-MTA by mail.stone-ware.com with Novell_GroupWise; Fri, 09 May 2003 14:10:03 -0500 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.1 Date: Fri, 09 May 2003 14:09:20 -0500 From: "Tony Thompson" To: Subject: Custom data type problem Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I created my own custom data type that handles a data type that looks something like this: Value 1 Value 2 My "Value" class has the following methods: { ... public void addText( final String text ) { m_value.append( text ); } public String toString() { return m_value.toString(); } } My "Attribute" class has a method to add configured "Value" objects: public final void addConfiguredValue( final Value value ) { m_values.add( value.toString() ); } When I call value.toString() at this time, Value.addText() has not been invoked yet so the string is empty. I thought that the addConfiguredXXX() methods were supposed to add already configured objects. What should I change to make this behave properly? I am using version 1.5.3. Thanks. Tony