Bug 99113 - [ast rewrite] ListRewrite should throw IllegalArgumentException when trying to remove non-existing node [ast rewrite]
Summary: [ast rewrite] ListRewrite should throw IllegalArgumentException when trying t...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-09 05:14 EDT by Tobias Widmer CLA
Modified: 2005-12-13 10:07 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 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