Bug 252571

Summary: [buildpath] External folder appears empty after workspace move
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_audel
Version: 3.4   
Target Milestone: 3.5 M4   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=542860
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Jerome Lanneluc CLA 2008-10-29 08:38:03 EDT
I20081029-0100

1. Start a new workspace on "d:\temp\test"
2. Create a Java project "Test"
3. Add a non-empty external class folder to the build path of "Test" (e.g.
"d:\temp\lib")
4. Shutdown
5. Rename "d:\temp\test" to "d:\temp\test2"
6. Start Eclipse on this new workspace
Observe: The external folder node in the Package Explorer appears empty
Comment 1 Jerome Lanneluc CLA 2008-10-29 08:40:37 EDT
Variation on this scenario:
1. Start a new workspace on "d:\temp\test"
2. Create a Java project "Test"
3. Add a non-empty external class folder to the build path of "Test" (e.g.
"d:\temp\lib")
3a. Open a .class file from the external folder in a class file editor in Eclipse
4. Shutdown
5. Rename "d:\temp\test" to "d:\temp\test2"
6. Start Eclipse on this new workspace
Observe: The class file editor is not correctly restored due to an exception.
Comment 2 Jerome Lanneluc CLA 2008-11-25 05:23:00 EST
Created attachment 118646 [details]
Proposed fix

Note that there is no regression test as one cannot move the workspace in
tests.
Comment 3 Jerome Lanneluc CLA 2008-11-25 10:11:48 EST
Fix released for 3.5M4
Comment 4 David Audel CLA 2008-12-09 05:23:10 EST
Verified for 3.5M4 using build I20081208-1800