ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cost...@covalent.net>
Subject RE: TaskAdapter broken ?
Date Fri, 12 Oct 2001 16:06:40 GMT
On Fri, 12 Oct 2001, Conor MacNeill wrote:

> Costin,
>
> As I read the code, it looks like it will call SetProject if it exists but
> not if it doesn't.
>
>     Class c = proxy.getClass();
>     setProjectM =
>         c.getMethod( "setProject", new Class[] {Project.class});
>     if(setProjectM != null) {
>         setProjectM.invoke(proxy, new Object[] {project});
>     }
>
> How is this failing for you?


getMethod() doesn't return null, it throws NoSuchMethodException :-(



Costin




Mime
View raw message