Bug 7252

Summary: Can add a variable with no associated jar file to a build path
Product: [Eclipse Project] JDT Reporter: Tod Creasey <Tod_Creasey>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Tod Creasey CLA 2002-01-04 09:00:07 EST
It is possible to add a variable to the build path for a project using add 
variable but this will not pick up the classes in that directory. The user 
although warned can still select it.

STEPS
1) Define a classpath variable PATH_TEST that is a directory with classes in it
2) Open the properties dialog on a JavaProject
3) Select the Libraries Tag
4) Select Add Variable
5) Select PATH_TEST 
6) You will get a message that Resolved path does not exist. However OK is 
enabled so you can select this and believe it is valid.The UI correctly shows 
the empty circle to indicate it is not found but it is easy to miss the cause 
of this.
Comment 1 Martin Aeschlimann CLA 2002-01-11 12:20:15 EST
as designed. We want to be tolerant when setting variable classpath entries.
there is only a warning, but no error.
Comment 2 Tod Creasey CLA 2002-01-11 12:52:49 EST
The warning should be more eye catching then - perhaps use a different colour 
for the background like the wizards do.
Comment 3 Martin Aeschlimann CLA 2002-01-14 10:10:38 EST
Improved the error status. Warnings now are rendered with a warning image.

> 20109
Comment 4 Andre Weinand CLA 2002-01-15 05:40:02 EST
Verified: Exclamation mark on yellow triangle appears to the left of error 
message.