Bugs item #966232, was opened at 2004-06-04 10:41
Message generated for change (Settings changed) made by chiba
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=966232&group_id=22866
Category: Javassist
Group: Javassist 2.4.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Vlad Skarzhevskyy (vlads)
Assigned to: Shigeru Chiba (chiba)
Summary: try catch in NewExpr
Initial Comment:
javassistV2.6.jar or javassistV3.0b.jar the same results:
Actualy I wanted to catch exceptions in during Object
creation
So I did:
public class NewCodeConverter extends ExprEditor {
public void edit(NewExpr expr) throws
CannotCompileException {
StringBuffer code = new StringBuffer(300);
code.append("{ try ");
code.append("{ $_ = $proceed($$); }");
code.append("catch (OutOfMemoryError e) { .. }");
expr.replace(code.toString());
}
}
but during execution I get:
Exception in thread "main" java.lang.VerifyError:
method: my_getmem signature: (I)V) Inconsistent
stack height 0 != 2
everything works fine without try and catch
----------------------------------------------------------------------
Comment By: Shigeru Chiba (chiba)
Date: 2004-06-06 01:12
Message:
Logged In: YES
user_id=388745
This bug has been fixed.
See the forum for details.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=966232&group_id=22866
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development