Community
Participate
Working Groups
This method should be documented to potentially throw a org.eclipse.text.edits.MalformedTreeException. The only thrown exception in the documentation is java.lang.IllegalArgumentException.
That would be a internal bug of ASTRewrite.rewriteAST if a MalformedTreeException occurs. It should not happen and the user should not have to deal with this The problems that throw a IllegalArgumentException are different. They are sulting from wrong input arguments, e.g. a document that does not correspond to the AST.
*** This bug has been marked as a duplicate of 88224 ***