Summary: | warning for a suspicious == or != | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED INVALID | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2004-07-27 13:26:06 EDT
This is already flagged as an error, since by JLS operands have to be cast compatible. public class X { public static void main(String[] args) { String s = "aaa"; Integer i = new Integer(0); if (s == i) {} // incompatible types } } silly me - sumbitted a bug without checking first sory and thanks |