Leo Sutic wrote: > >>From: Antti Koivunen [mailto:[EMAIL PROTECTED]] >> >>I've seen this happen, but people who implement equals() should know >>better :) >> > > And given pooling of components, and the standard usage patterns, and > the fact that you should only call the methods specified in the > component's interface (do not call Object methods), I agree.
And it would be possible to use the method Class.isAssignableFrom(Class) in the InvocationHandler to verify that the method being called is actually defined by the role interface (or a superinterface thereof). (: A ;) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>