Bugs item #999830, was opened at 2004-07-29 09:53
Message generated for change (Comment added) made by chiba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999830&group_id=22866
Category: Javassist
Group: CVS HEAD
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Brett Randall (brett_s_r)
Assigned to: Shigeru Chiba (chiba)
Summary: ClassMetaobject,conv. access to orig. Method by name
Initial Comment:
In some applications, especially where some code is
aware of the reflection, it can be convenient to be able
to access the original (now renamed and intercepted)
Method, using its original name.
For example, a method getAge(int year) has been
reflected and is now _m_3_getAge(int year), with
getAge now delegating to the metaobject. In some
circumstances, where the code is aware of the
reflection and can access the metaobjects, it can be
useful to be able to access the original Method directly,
without knowing its new name.
A convenience method that accepts the original method
name (e.g. getAge) and the Method signature (e.g. Class
[] {Integer.TYPE}) and returns the int identifier of the
Method as held the metaobject, has been drafted and
added to ClassMetaobject. It can be used in
conjunction with getReflectedMethods to retrieve the
method.
Please review and consider. I have also found this
access very useful when testing Javassist code.
----------------------------------------------------------------------
>Comment By: Shigeru Chiba (chiba)
Date: 2004-08-15 00:49
Message:
Logged In: YES
user_id=388745
Thanks. I have merged your patch into the source tree.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999830&group_id=22866
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development