Bug 55907 - Compiler doesn't behave correctly in all cases
Summary: Compiler doesn't behave correctly in all cases
Status: RESOLVED DUPLICATE of bug 36032
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 10:46 EST by Marco Qualizza CLA
Modified: 2004-03-24 12:13 EST (History)
0 users

See Also:


Attachments
My prefrences (52.97 KB, text/plain)
2004-03-24 10:51 EST, Marco Qualizza CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Qualizza CLA 2004-03-24 10:46:19 EST
I'm sorry, I didn't have a better way to summarize this.

I20040324-0010 (GTK2 on KDE, J2SDK 1.4.2_03)

1. Create a new project.
2. Add the following files (I put them in a "test" package):
A1.java
-------
package test;

public class A1 {
}

class A2 {
}
-------

B1.java
-------
package test;

public class B1 {
//   A1 a1 = new A1();
   A2 a = new A2();
}
-------

3. Close A1.java (so that only B1.java is opened up in an editor)
4. Select your project and "Clean" it (Project->Clean)
5. Add/remove a space.  At this point, I get red squigglies under A2.
6. Uncomment the A1 line (either by deleting the // or hitting <ctrl-\>.  Notice
that the red squigglies disappear.
7. Comment-out the A1 line again, the red squigglies should disappear again.
8. Save (<ctrl-s>).  The squigglies remain, but no error is in the problems view.

I have another scenario almost exactly like this -- the difference is that the
error *does* make it to the problems view, but I can't figure out how to
reproduce it.  (Although it *does* appear every time that I update the .java
file from CVS... I'll need to try that too...)

I'll attach my compiler settings.
Comment 1 Marco Qualizza CLA 2004-03-24 10:51:19 EST
Created attachment 8832 [details]
My prefrences

Step 7 should read "Notice that the red suigglies *reappear*."

These are all of my preferences.  Apparently you can't export only the compiler
settings, and there is no obvious way to enable the export options ("select
preferences", "only from this page").
Comment 2 Dirk Baeumer CLA 2004-03-24 12:03:11 EST
Daniel, I think this is a dup of what Gred detected.
Comment 3 Philipe Mulet CLA 2004-03-24 12:13:13 EST

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