Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 59137 invoked from network); 18 Dec 2001 02:19:02 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 18 Dec 2001 02:19:02 -0000 Received: (qmail 18035 invoked by uid 97); 18 Dec 2001 02:19:09 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 18019 invoked by uid 97); 18 Dec 2001 02:19:08 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 18008 invoked from network); 18 Dec 2001 02:19:08 -0000 From: "Adam Murdoch" To: Subject: [PATCH] IntrospectionHelper Date: Tue, 18 Dec 2001 11:27:59 +1000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_006B_01C187B7.0C07FEA0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_006B_01C187B7.0C07FEA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, A tiny patch to IntrospectionHelper. This fixes the case where a class has an 'addConfigured' method and an 'add' or 'create' method for the same element. Depending on the order that Class.getMethods() returns the class' methods, Ant will sometimes call both methods, and sometimes call only one of them. This patch fixes this so that Ant will only ever call one of the 'addConfigured', 'add' or 'create' methods for a nested element. Adam ------=_NextPart_000_006B_01C187B7.0C07FEA0 Content-Type: text/plain; name="patch.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="patch.txt" Index: src/main/org/apache/tools/ant/IntrospectionHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: = /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHe= lper.java,v retrieving revision 1.27 diff -u -r1.27 IntrospectionHelper.java --- src/main/org/apache/tools/ant/IntrospectionHelper.java 2001/12/04 = 20:34:29 1.27 +++ src/main/org/apache/tools/ant/IntrospectionHelper.java 2001/12/18 = 01:14:15 @@ -208,6 +208,7 @@ } =20 }); + nestedStorers.remove(propName); =20 } else if (name.startsWith("addConfigured") && java.lang.Void.TYPE.equals(returnType) @@ -265,6 +266,7 @@ } =20 }); + nestedStorers.remove(name); } catch (NoSuchMethodException nse) { } } ------=_NextPart_000_006B_01C187B7.0C07FEA0 Content-Type: text/plain; charset=us-ascii -- To unsubscribe, e-mail: For additional commands, e-mail: ------=_NextPart_000_006B_01C187B7.0C07FEA0--