Bug 99113

Summary: [ast rewrite] ListRewrite should throw IllegalArgumentException when trying to remove non-existing node [ast rewrite]
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: All   
Whiteboard:

Description Tobias Widmer CLA 2005-06-09 05:14:01 EDT
3.1 RC1

Contrary to ASTRewrite, when trying to remove a non-existing ASTNode from a 
list using ListRewrite, no IAE is thrown.

ListRewrite should throw one as well to be consistent
Comment 1 Martin Aeschlimann CLA 2005-12-12 04:19:17 EST
In fact it's to replace a node that is in the tree of an new node that is added.

I changed the normal replace to not throw an IAE anymore.
Comment 2 Martin Aeschlimann CLA 2005-12-12 04:19:33 EST
..it's ok to replace...
Comment 3 Tobias Widmer CLA 2005-12-13 10:07:56 EST
Verified using I20051213-0010