2007/5/28, Howard Lewis Ship <[EMAIL PROTECTED]>:
That's very odd; based on how Tapestry instruments the code, that should
automatically happen, even if @OnEvent is not inherited (which it isn't,
only type annotation, not method annotations, can be inherited).




In javassist javadoc pages:



public CtMethod[] getDeclaredMethods()

   Gets all methods declared in the class. The inherited methods are not
included.

So In InternalClassTransformationImpl ,the method:
public List<MethodSignature> findMethods(MethodFilter filter){
....

for (CtMethod method : _ctClass.getDeclaredMethods())
}


had a wrong method collection.

I think it use CtClass.getMethods().

getMethods

public CtMethod
<http://www.csg.is.titech.ac.jp/%7Echiba/javassist/html/javassist/CtMethod.html>[]
*getMethods*()

Returns an array containing CtMethod objects representing all the
non-private methods of the class. That array includes pon-private methods
inherited from the superclasses.




Jun Tsai
--
Welcome to China Java Users Group(CNJUG).
http://cnjug.dev.java.net

Reply via email to