Bugs item #966232, was opened at 2004-06-04 10:41
Message generated for change (Comment added) 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: Open
Resolution: None
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 is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development