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



Reply via email to