Bug 357985 - Eclipse not recognizing legitimate compiler errors
Summary: Eclipse not recognizing legitimate compiler errors
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 4.3 M3   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-09-16 15:24 EDT by Joe G CLA
Modified: 2012-10-30 03:15 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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