Hi,
it seems i have discovered my problem now correctly, not as mentioned in
my last thread that the copy operation of methods seemed to fail.
No ... the problem lies somewhere else and i have figured out which
construct it caused.
If i have sth like this within a methodbody:
| ....
| new Exception(b.getValue());
| ...
|
and i want to replace the call of b.getValue() by sth like this
| if(....){
| // get method with java reflection mechanism
| }else{
| // call "old" method
| }
|
But at the moment i have also no clue why this is the case.
Does Javassist have trouble in translating sth like this ?!?
| java.lang.reflect.Method method = $0.getClass().getMethod("say",
null);
| method.invoke($0, null);
|
Sincerely
Sirrurg
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867195#3867195
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867195
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user