"stale.pedersen(a)jboss.org" wrote : "alesj" wrote :
| | What does javassist return as CtBehavior::getSignature?
| | How does it look like?
| | I guess you get the same string even for diff instances of the same
method/field/constructor?
| |
| yes, using the method signature will create duplicate keys if methods got the same
parameter signature. but using CtBehaviour.getLongName() (which add the class and
methodname to the signature) we will always be sure that we have a unique key. eg for a
method like: Pojo.foo(String), CtBehaviour.getLongName() would return
Pojo.foo(java.lang.String).
There was a previous discussion about adding class name to the signature.
We ended up doing a halfway solution with the DeclaredMethodSignature
since we didn't have time to test changing the existing signatures.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211037#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...