[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: MutableClassInfo?
adrian@jboss.org
do-not-reply at jboss.com
Wed Feb 18 07:06:32 EST 2009
"stale.pedersen at 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#4211037
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211037
More information about the jboss-dev-forums
mailing list