[JBoss-user] [Javassist user questions] - Re: addCatch doesn't work

2004-12-13 Thread chiba
I think it's a bug of Javassist. I'll fix this bug within a few days. Please wait for a while. (Fixing that bug seems very easy but it takes time to write test code etc. I could not have time to do it today.) View the original post :

[JBoss-user] [Javassist user questions] - Re: addCatch doesn't work

2004-12-10 Thread rezahay
Thank you very, chiba for your response. I used {return;} and it works. But if there are methods with non-void return types then {return;} is not enough. Therefore I used (within my addCatch) {Object result; return ($r)result;}. But I get the following javassist compiler error:

[JBoss-user] [Javassist user questions] - Re: addCatch doesn't work

2004-12-09 Thread chiba
Ah... Can you do method.addCatch({return;}, expClass); and make sure it works? There is a note in both the tutorial and the javadoc. anonymous wrote : Note that the inserted code fragment must end with a throw or return statement. Thank you! View the original post :