| Summary: | CompilationUnit.rewrite produces wrong result/ | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | David Schuler <schulerdavid> | ||||
| Component: | Core | Assignee: | Ayushman Jain <amj87.iitr> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | martinae, Olivier_Thomann | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | Macintosh | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
David Schuler
Created attachment 164583 [details]
JUnit Test to reproduce the bug
Comment on attachment 164583 [details]
JUnit Test to reproduce the bug
There is a missing brace in the String returned by getSource() method of the test case. However, this does not influence the results.
The modifying approach doesn't quite work in this case when applying modifications on modifications. I'll try to rewrite it using the descriptive approach. The descriptive approach doesn't work as well in this case. This is too late to try to fix this for 3.6. I'll continue to investigate. Martin, would you have any documentation I could go through to understand the way the internals of rewrite is working? Sorry, there is only the code... I'll gladly help, and maybe also David still remembers how things work. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |