Bug 6645 - Build/Rebuild does not recompile code
Summary: Build/Rebuild does not recompile code
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-06 11:25 EST by Michael Fraenkel 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 Michael Fraenkel CLA 2001-12-06 11:25:23 EST
If I build or rebuild my project, there is one error reported.
If I edit a single source file and save it, I see errors reported for this 
file.  If I then do a build or rebuild, the errors disappear again.
Comment 1 Michael Fraenkel CLA 2001-12-06 11:44:18 EST
I have a single error "This compilation unit indirectly references the missing 
type XXX".  This type of error seems to prevent compilation from doing 
anything.  Even though the one file should not be compiled due to the error, 
all my files are not compiled.
Comment 2 Philipe Mulet CLA 2001-12-07 09:56:44 EST
This error is pretty fatal to the compiler, causing it to abort a build task. 
It occurs when some binaries are referring to missing ones (in your case one of 
the involved binary is referencing TraceListener which isn't on your classpath).

Given the compiler is blaming source units, it issues this error on the source 
unit which indirectly referenced the missing type, and then aborts the build 
given it usually indicates a bogus classpath, and it is pointless to go any 
further in general.

If you fix this very problem, then the build process should fly again.

Comment 3 Michael Fraenkel CLA 2001-12-07 10:16:27 EST
So what is the preferred way to fix this issue.
If I am dependent on another piece of code, I cannot compile my code until I 
receive some external fix.  Currently, there is no way to "not" compile a 
piece of source.  My work around has been to rename problematic files.
Comment 4 Philipe Mulet CLA 2001-12-07 16:29:35 EST
There is no way we can build against inconsistent libraries, doing better would 
hard. Now chances is that the library is fine, but you are missing some of its 
prerequisites on your classpath. So a classpath change is likely all you need 
to do.

If the library should be ignored until you get a better one, simply remove it 
from your classpath, if you can, if not then you have to patch to make it 
consistent... 

Comment 5 Philipe Mulet CLA 2001-12-07 18:52:14 EST
Ok to close ?
Comment 6 Michael Fraenkel CLA 2001-12-08 09:26:12 EST
You may close this.  I don't like the behavior but I have a workaround.
Comment 7 Philipe Mulet CLA 2001-12-10 06:44:19 EST
Closing