Bugs item #997458, was opened at 2004-07-25 17:53
Message generated for change (Comment added) made by chiba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=997458&group_id=22866
Category: Javassist
Group: CVS HEAD
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Brett Randall (brett_s_r)
Assigned to: Shigeru Chiba (chiba)
Summary: addCatch("return;", ...) on CtConstructor causes VerifyError
Initial Comment:
Adding a catch statement to a CtConstructor:
constructor.addCatch("return;", cp.get
("java.lang.RuntimeException"));
results in a VerifyError:
java.lang.VerifyError: (class:
javassist/testclasses/SimpleThrows, method: <init>
signature: ()V) Constructor must call super() or this()
So it seems that the code modification is wrapping the
call to super() as well as the Constructor body?
Is there a correct way of wrapping the body of a
Constructor with a try-catch using addCatch()?
Attached are class and unit test case - comment out
the above line to allow (assertion failure) execution.
";" and "" fail the same way.
----------------------------------------------------------------------
>Comment By: Shigeru Chiba (chiba)
Date: 2004-07-27 18:47
Message:
Logged In: YES
user_id=388745
fixed. Thanks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=997458&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