Bug 371834

Summary: Compilation error is not catched
Product: [Eclipse Project] JDT Reporter: Roman Druker <romandru>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: jarthana, srikanth_sankaran
Version: 3.8   
Target Milestone: 3.8 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Roman Druker CLA 2012-02-16 19:38:58 EST
Build Identifier: Version: Helios Release Build id: 20100617-1415

hi
We found Eclipse is not catching some Java compile errors. Here is sample code:

final static short retVal=0;
public Integer my_Method()
{
return retVal;
}
----------------
If retVal declared as final - no errors displayed. If it is not final - error "type mismatch" is displayed. And javac is getting this error always

Reproducible: Always

Steps to Reproduce:
1.thy this Java sample code with final and not final decalration
2.
3.
Comment 1 Srikanth Sankaran CLA 2012-02-16 19:43:54 EST
Could you try with a later version say 3.7 or even better  3.8 M5  ? I don't see the problem on HEAD.
Comment 2 Roman Druker CLA 2012-02-16 20:01:31 EST
Actually, we got this issue first on RTC 3.0.1 which is latest version of RTC. RTC is using Eclipse for compilation. After that I tried on Eclipse Helios and got the same result. So - we better to have fix for RTC 3.0.1.
Comment 3 Srikanth Sankaran CLA 2012-02-16 23:25:01 EST
See bug# 362279 comment#8 and bug# 362279 comment# 9.

No plans to back port this as this is not a regression and
also since this is not a blocker (the reverse case where we
don't compile something which we should would have made a
stronger case for back porting.)

*** This bug has been marked as a duplicate of bug 362279 ***
Comment 4 Jay Arthanareeswaran CLA 2012-03-12 08:59:08 EDT
Verified for 3.8 M6 using build I20120306-0800