Bug 371834 - Compilation error is not catched
Summary: Compilation error is not catched
Status: VERIFIED DUPLICATE of bug 362279
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.8 M4   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-16 19:38 EST by Roman Druker CLA
Modified: 2012-03-12 08:59 EDT (History)
2 users (show)

See Also:


Attachments

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