[jboss-jira] [JBoss JIRA] Created: (JASSIST-92) ExprEditor: edit "throw new Exception"-Statements

Hans-Joerg Adel (JIRA) jira-events at lists.jboss.org
Thu Jul 30 05:52:29 EDT 2009


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

        



More information about the jboss-jira mailing list