Bugs item #999830, was opened at 2004-07-29 10:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999830&group_id=22866

Category: Javassist
Group: CVS HEAD
Status: Open
Resolution: None
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.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=999830&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to