Bug 88220 - org.eclipse.jdt.core.dom.rewrite.ASTRewrite.rewriteAST(IDocument document, Map options) can potentially throw a org.eclipse.text.edits.MalformedTreeException
Summary: org.eclipse.jdt.core.dom.rewrite.ASTRewrite.rewriteAST(IDocument document, Ma...
Status: RESOLVED DUPLICATE of bug 88224
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 14:02 EST by Olivier Thomann CLA
Modified: 2005-03-17 12:32 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2005-03-16 14:02:33 EST
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.
Comment 1 Martin Aeschlimann CLA 2005-03-17 04:04:58 EST
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.
Comment 2 Martin Aeschlimann CLA 2005-03-17 12:32:12 EST

*** This bug has been marked as a duplicate of 88224 ***