Summary: | [compiler][null] org.eclipse.jdt.internal.compiler.ast.OperatorExpression.nullStatus(FlowInfo) too conservative | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Perry James <perry> | ||||
Component: | Core | Assignee: | Maxime Daniel <maxime_daniel> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | CC: | chalin | ||||
Version: | 3.3 | Keywords: | contributed | ||||
Target Milestone: | 3.3 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Perry James
2006-11-21 12:32:20 EST
Created attachment 54268 [details]
patch for OperatorExpression.nullStatus()
proposed fix.
You're right, thanks for the heads up. Found a test case that is broken by the current code: public class X { void foo() { int j = 5; Integer i = 0 + j; if (i == null) {} // should complain here but does not } } Added NullReferenceTest#45. Released for 3.3 M4. Verified for 3.3M4 with I20061211-1119 |