Bug 8340 - inaccurate error message when dependent project is closed
Summary: inaccurate error message when dependent project is closed
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 8342 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-23 17:33 EST by John Arthorne CLA
Modified: 2002-01-31 12:05 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2002-01-23 17:33:34 EST
Build 20020123 with autobuild off.

1. Create project A
2. Create project B that depends on A
3. Global build
4. Close project A
5. Global build.

A error appears in the task list for project B: "The project was not built since 
it is inconsistent. Refresh this project then rebuild it."

This error is misleading.  Refreshing and rebuilding will do nothing.  It should 
instead say that it depends on a project that is closed.
Comment 1 Kent Johnson CLA 2002-01-24 13:17:17 EST
JavaProject.getExpandedClasspath should handle a closed project the same as a 
missing project by reporting a missing warning.

The build would continue without any dependency on the missing project.
Comment 2 Philipe Mulet CLA 2002-01-30 07:28:42 EST
A closed project isn't really 'missing', but this is interesting.

The problem is that the classpath will keep surfacing it, so 
#getExpandedClasspath will still answer some closed projects (classpath entries 
are simply handles to project). These must be filtered out by client code if 
unable to accept them.
Comment 3 Philipe Mulet CLA 2002-01-30 08:48:13 EST
I added a notification when a required project is closed, however the builder 
error message should be better nuanced to accomodate with classpath issues.

Why does it produce the error:

build.incompleteClassPath = The project was not built since its classpath is 
incomplete. Fix the classpath then rebuild it
Comment 4 Kent Johnson CLA 2002-01-30 12:17:53 EST
Closed projects are now treated the same as missing projects... a warning is 
issued & the build proceeds. If no references exist to the closed/missing 
project, the build is error free.
Comment 5 Kent Johnson CLA 2002-01-31 12:05:36 EST
*** Bug 8342 has been marked as a duplicate of this bug. ***