Bug 320216 - Null anaysis not done for autoboxing
Summary: Null anaysis not done for autoboxing
Status: VERIFIED DUPLICATE of bug 319201
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 02:46 EDT by utilisateur_768 CLA
Modified: 2011-01-25 11:14 EST (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 utilisateur_768 CLA 2010-07-19 02:46:33 EDT
Build id: I20100608-0911

Hi, if call "intValue()" method in the example below, i get a warning/error, but if i use autoboxing, i don't. Could you please fix it?

public class AutoboxingNull {
  public int foo(Integer i) {
    if (i == null)
      return i.intValue(); // i can only be null
    return 0;
  }
  
  public int bar(Integer i) {
    if (i == null)
      return i; // no error or warning
    return 0;
  }
  
}
Comment 1 Ayushman Jain CLA 2010-07-19 02:51:48 EDT
This is same as bug 319201.

*** This bug has been marked as a duplicate of bug 319201 ***
Comment 2 Olivier Thomann CLA 2011-01-25 11:14:05 EST
Verified.