Bug 7252 - Can add a variable with no associated jar file to a build path
Summary: Can add a variable with no associated jar file to a build path
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-04 09:00 EST by Tod Creasey CLA
Modified: 2002-01-15 05:40 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.