Bug 5267 - Dependent Projects not compiled when project is saved
Summary: Dependent Projects not compiled when project is saved
Status: RESOLVED DUPLICATE of bug 5275
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-25 19:00 EDT by Jed Anderson CLA
Modified: 2002-01-11 09:13 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 Jed Anderson CLA 2001-10-25 19:00:26 EDT
1. Make sure the "Perform build automatically on resource modification" option 
is selected from 
Window->Preferences->Workbench

2. Create Project1
3. Create a package "p1"
4. Create a interface "MyInterface"
5. Create a method foo() on MyInterface. 
6. Create a Project2.  Make sure you add the dependency of Project1.
7. Create a package "p2"
8. Create a class "MyClass" which implements "MyInterface" and has a method foo
()
10. Go back to the interface "MyInterface" and add a new method bar() 

RESULT: At this moment an errors is being shown in Project1 only.
EXPECTED RESULT:  Expected to see errors in Project1 and Project2 since neither 
implements the bar() method, 
and since Project 1 is dependent on Project2. 

SUGGESTED SOLUTION:  When you compile a class, have the JDT compile dependent 
classes also.  Perhaps a
preference for the user to enable/disable this function would be helpful.
Comment 1 Philipe Mulet CLA 2001-11-04 09:38:26 EST
This is a known limitation on the class file dependencies (cross project 
scenario).



*** This bug has been marked as a duplicate of 5275 ***