Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 103846

Summary: [reorg] moving a class fails if a class with the same name exists in the destination and is open in editor [refactoring]
Product: [Eclipse Project] JDT Reporter: Alexander Pavlov <Alexander.Pavlov>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Alexander Pavlov CLA 2005-07-14 12:15:55 EDT
Create packages "a", "b", and a "Class1" class in each of them. Open a.Class1 
in an editor. Select b.Class1 and Refactor | Move it into the "a" package. The 
a.Class1 editor appears dirty, on getting focus shows the "The file has been 
changed on the file system. Do you want to load the changes?" dialog. 
Answer "Yes". The "package" statement in the loaded class appears as "b" which 
is wrong.
Comment 1 Eclipse Genie CLA 2019-08-08 11:41:49 EDT
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.