Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 1867 invoked from network); 29 Jan 2004 17:22:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 29 Jan 2004 17:22:26 -0000 Received: (qmail 37925 invoked by uid 500); 29 Jan 2004 17:22:15 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 37884 invoked by uid 500); 29 Jan 2004 17:22:15 -0000 Mailing-List: contact dev-help@ant.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 dev@ant.apache.org Received: (qmail 37865 invoked from network); 29 Jan 2004 17:22:14 -0000 Received: from unknown (HELO ca-exch01.actional.com) (63.101.113.162) by daedalus.apache.org with SMTP; 29 Jan 2004 17:22:14 -0000 content-class: urn:content-classes:message Subject: RE: BeanShellDef - java.lang.LinkageError: duplicate class definition: AList MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 29 Jan 2004 09:20:55 -0800 Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: BeanShellDef - java.lang.LinkageError: duplicate class definition: AList Thread-Index: AcPmdJ2fn4zUHoBcTG2DJHl7YYENoAAD72Mw From: "Michael Sunde" To: "Ant Developers List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, > > Looking at your example of reflectdef, the only thing I=20 > don't like is=20 > > the line: > > hello.class; > > I prefer how it is done in beanshelldef with the classname=20 > attribute.=20 > > That is just my $0.02,so do what you think is best. >=20 >=20 > I have just realized that one does not need to do this, if the last=20 > statement is > a class definition, this is returned as an object. > so > > import... > class MyTaskDefintion extends Task { > } > > works! >=20 Great! >> For now, I managed to modify beanshelldef to work around the antcall=20 >> problem. See the attachment. >> =20 >> > Pretty neat, but won't work for the general language case. - It may be = > possible to use a different classloader > for each definition or use textual comparision for override checking. For now, the modifications I did to beanshelldef are working, but like = you said, the fix may not work in all cases. Hopefully there is a clean = solution and reflectDef can make it into the next release of ant. Thanks, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org