Bug 66512 - Invalid classpath entry not rejected
Summary: Invalid classpath entry not rejected
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-10 10:47 EDT by Jerome Lanneluc CLA
Modified: 2004-09-06 10:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2004-06-10 10:47:05 EDT
I20040609

1. Create 2 Java projects P1 and P2
2. Edit .classpath file in P2:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
	<classpathentry kind="src" path="/P1/src1/src2"/>
	<classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="output" path="bin"/>
</classpath>
Observe: Not error are reported in the Problems view

It should report the path "/P1/src1/src2" as an invalid entry.
Comment 1 Jerome Lanneluc CLA 2004-06-30 11:40:31 EDT
Changed ClasspathEntry.elementDecode(...) to return a source entry if the path 
has more than one segment.

Added regression test ClasspathTests.testInvalidSourceFolder()
Comment 2 Philipe Mulet CLA 2004-07-01 11:01:27 EDT
Pls backport to 3.0.1
Comment 3 Philipe Mulet CLA 2004-07-01 11:02:51 EDT
Targeting 3.0.1
Comment 4 Jerome Lanneluc CLA 2004-07-01 12:07:18 EDT
Backported fix and test to R3_0_maintenance
Comment 5 David Audel CLA 2004-09-06 10:24:45 EDT
Verified for 3.0.1 RC1