Bug 3189

Summary: JavaBuilder - Missing libraries results in insufficient dependency info (1FWYERT)
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M1   
Hardware: All   
OS: Windows NT   
Whiteboard:

Description Nick Edgar CLA 2001-10-10 22:50:59 EDT
While trying to reproduce 1FWSFNS: ITPJCORE:WIN98 - Assertion Failed in javamodel,
I did the following:

- load RemoteJUnitRunner solution from hydrogen
- it builds
- result is one error in junit.servletui/HTMLWriter.java
  due to missing java.lang.Object
- add rt.jar to class path
- it rebuilds only HTMLWriter.java, producing HTMLWriter.class
- no other .java files are compiled

This is because the compiler aborted early when it detected the missing expected library class.
Only HTMLWriter came back as a result (with proper dependencies).
Since the builder doesn't have dependencies for the other units, it can't know to recompile them
when the missing packages are added.

NOTES:

PM (6/22/00 2:50:16 PM)
	The builder should know it has no build state for the other units.

NE (6/22/00 4:32:55 PM)
	It does, but it can't necessarily act on this knowledge.
	It doesn't know whether the change may fix the problem.
	The only alternative is for it to try recompiling every compilation unit with no dependency info
	every time there is a change, which would be expensive and may not actually fix the problem.
Comment 1 DJ Houghton CLA 2001-10-23 23:51:04 EDT
PRODUCT VERSION:
029 in VA/Java

Comment 2 Kent Johnson CLA 2001-12-10 15:23:51 EST
Closed - not reproducable with new builder.

The new builder rebuilds the project whenever the classpath is changed.