ExprEditor: edit "throw new Exception"-Statements
-------------------------------------------------
Key: JASSIST-92
URL:
https://jira.jboss.org/jira/browse/JASSIST-92
Project: Javassist
Issue Type: Feature Request
Affects Versions: 3.11.0.GA
Environment: WIndows Vista Java 1.6
Reporter: Hans-Joerg Adel
Assignee: Shigeru Chiba
Priority: Minor
Hi!
At the moment I am using the ExprEditor. I miss an edit-Method to access throw statements
like the follwing ones:
throw new RuntimeException();
try {
foobar(x);
} catch (IllegalArgumentException e) {
doSomething();
throw e; // this statement
}
I think of something like this:
public void edit(ThrowExpr t) {
t.getType(); // returns the CtClass of the thrown Exception
}
Cheers
Ruwen and Hans-Joerg
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira