Bug 259428

Summary: [1.5][compiler] Bug with @SuppressWarnings("null")
Product: [Eclipse Project] JDT Reporter: Michal K <eclipse-mail2>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, Mike_Wilson, Olivier_Thomann, srikanth_sankaran
Version: 3.5   
Target Milestone: 3.6 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Michal K CLA 2008-12-19 20:58:17 EST
The following program issues a warning with Eclipse 3.4.1 (build M20080911-1700), even though it is not supposed to (tested against javac 1.6.0_07).

I could not find this bug reported, but I may have missed the report (searched for SupressWarnings)

Thanks!

public class Test{
  void m ()
  {
    Integer y= null;
    @SuppressWarnings("null")
    int x;
	x = y;
  }
}
Comment 1 Mike Wilson CLA 2009-05-05 12:37:53 EDT
Changing Version tag to something more believable.
Comment 2 Olivier Thomann CLA 2009-12-09 12:17:43 EST
If you are talking about this warning:
1. WARNING in D:\tests_sources\Test.java (at line 5)
	@SuppressWarnings("null")
	                  ^^^^^^
Unnecessary @SuppressWarnings("null")

This is expected as there is no null warning issued for the corresponding code.
Closing as INVALID.
Comment 3 Ayushman Jain CLA 2010-01-25 06:46:12 EST
verified for 3.6M5.
Comment 4 Srikanth Sankaran CLA 2010-01-25 06:52:52 EST
Verified.