Bug 27487

Summary: Builder doesn't handle move to nested source folder
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2002-12-02 07:19:59 EST
Build 20021127 + latest jdtcore

1. Create a Java project with 2 folders: P/src1 and P/src1/src2 and the 
following .classpath file:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src1" excluding="src2/"/>
    <classpathentry kind="src" path="src1/src2"/>
    <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" 
sourcepath="JRE_SRC"/>
    <classpathentry kind="output" path="bin"/>
</classpath>
2. In P/src1 create package p and class X:
package p;
public class X {
}
3. Build
4. Move package p to P/src1/src2
5. Build
Observe: You get an error: 'The declared package does not match the expected 
package src2.p'
Comment 1 Kent Johnson CLA 2002-12-02 14:30:27 EST
Fixed.

Added new test for this case.
Comment 2 David Audel CLA 2002-12-17 12:00:06 EST
Verified.