Bug 259428 - [1.5][compiler] Bug with @SuppressWarnings("null")
Summary: [1.5][compiler] Bug with @SuppressWarnings("null")
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-19 20:58 EST by Michal K CLA
Modified: 2010-01-25 06:52 EST (History)
4 users (show)

See Also:


Attachments

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