Bug 3234 - Incremental builder does not notice addition of java.lang.Object inside same project (1GBM23T)
Summary: Incremental builder does not notice addition of java.lang.Object inside same ...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:51 EDT by Philipe Mulet CLA
Modified: 2002-01-14 11:08 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 Philipe Mulet CLA 2001-10-10 22:51:44 EDT
On a 1 project scenario, the image builder fails to notice the addition of java.lang.Object and refresh the affected type.

TEST CASE:

1. Define java project Proj1 
2. Remove rt.jar from its build path
5. Add class X.java to Proj1: class X{}

Workspace should look like:
	Proj1 	
	+- X.java (class X{})

After adding X.java, an error is reported against it, complaining that java.lang.Object cannot be found.

6. Add class java.lang\Object.java to Proj1 --> the error on X.java did not get replaced with another one (Throwable is not found).

NOTES:

PM (4/3/2001 4:28:49 PM)
	TechPreview had same problem.

PM (4/26/2001 4:37:10 PM)
1.	Define:

<default package>
	X.java									public class X {}

<java.lang>
	Error.java							package java.lang;
												public class Error extends Throwable {}

	Object.java							package java.lang;
												public class Object {}

	RuntimeException.java		package java.lang;
												public class RuntimeException extends Throwable {}

	Throwable.java					package java.lang;
												public class Throwable {}

2.		Rebuild all (no problem)
3. 	Comment out the Object class declaration, save -> problems everywhere
4. 	Uncomment Object class declaration, save -> some problems persist

NE (04/30/01 10:37:04 AM)
	I believe the compiler is not generating the proper dependencies if it can't find these types.
	If it can't find java.lang.Object, it should at least generate a namespace dependency on java.lang
	(if it actually resolved java.lang).

PM (4/30/2001 7:58:23 PM)
	The namespace dependency was added in 101.
Comment 1 DJ Houghton CLA 2001-10-23 23:52:22 EDT
PRODUCT VERSION:
JT 0.036			

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

All problems are removed once the Class Error is added.