[
https://jira.jboss.org/browse/JASSIST-92?page=com.atlassian.jira.plugin.s...
]
Thomas Mauch commented on JASSIST-92:
-------------------------------------
Any chance that this feature could made it in a next release?
It would be useful for my work as well.
Regards,
Thomas
ExprEditor: edit "throw new Exception"-Statements
-------------------------------------------------
Key: JASSIST-92
URL:
https://jira.jboss.org/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/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira