Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357985

Summary: Eclipse not recognizing legitimate compiler errors
Product: [Eclipse Project] JDT Reporter: Joe G <jgeorge63>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, pwebster, remy.suen, srikanth_sankaran
Version: 3.6.2Keywords: needinfo
Target Milestone: 4.3 M3   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Joe G CLA 2011-09-16 15:24:11 EDT
Build Identifier: 20110218-0911

When Eclipse does a build, it is displaying about 170 errors in the "Problems view" as such..

"The local variable cid is never read"

In all of these cases, they are not actual compiler errors at all.  See below for eg.

public void init ( ) {
String cid = "testThis";  // this shows up as an error (underlined) in the editor
}

And this leads into the bigger problem - Eclipse is not underlining the legitimate errors in the editor.  

Str cid = "testThat"; // this is not being underlined as an error in Eclipse

I have tried everything, from ensuring that "restore to defaults" is set everywhere to uninstalling and reinstalling Eclipse.  But the problem persists.  

Reproducible: Always
Comment 1 Remy Suen CLA 2011-09-16 15:54:51 EDT
I'm guessing this is Java, it looks like Java.

Moving to JDT/Core, where Java compiler bugs belong.
Comment 2 Olivier Thomann CLA 2011-09-16 15:57:20 EDT
You must have project specific settings to report unused locals as errors.
Looks like a setting problem.
Comment 3 Olivier Thomann CLA 2011-09-20 08:41:21 EDT
Could you please provide your compiler settings for this project?
Comment 4 Srikanth Sankaran CLA 2012-10-16 04:08:39 EDT
Please reopen with settings if you disagree.
Comment 5 Jay Arthanareeswaran CLA 2012-10-30 03:15:28 EDT
Verified for 4.3 M3