Summary: | Package declaration inserted on wrong CU while copying class if names collide and editor opened | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Frederic Fusier <frederic_fusier> | ||||
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | markus.kell.r | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.2 M5 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Frederic Fusier
2005-11-21 04:05:57 EST
Markus, can you have a look? Looks like a problem in ICompilationUnit#copy(..). Moving to JDT/Core. We call that method on P/Test.java and copy it to the package b110336 with force==true. Right when that call comes back, the buffer of the ICompilationUnit Test/b110336/Test.java contains the two package declarations. The copy operation should only change the contents of the working copy and not touch the file system. Created attachment 31769 [details]
Proposed patch and regression test
Released fix and regression test to HEAD Verified for 3.2 M5 using build I20060214-0010. |