Summary: | [ast rewrite] ArrayIndexOutOfBoundsException when rewriting | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Daniel Stephan <fast.jack> | ||||
Component: | Core | Assignee: | Martin Aeschlimann <martinae> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | eric-inman | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.3 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Daniel Stephan
2006-09-20 14:19:42 EDT
Created attachment 56535 [details]
AST Parser test
Use this file to reproduce the issue.
I encountered this problem and it turned out to be caused by the fact that the Document I created for the rewrite was empty when I should have initialized it with the contents of the compilation unit from before the changes were made to the ASTNode's. Obviously, the deeply nested ArrayIndexOutOfBoundsException is not the best way to report that programming error. fixed > 20070212 Verified for 3.3 M6 using build I20070320-0010 |