Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Eugene Vigdorchik 
Subsystem
Editor. Error Highlighting 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4155
Fixed in build
5217
Severity
0
  • Submitted by   Serge Baranov
    3 years ago (04 Apr 2006 14:01)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31822
    (history, comments)

IDEA-31822

Boxing/unboxing syntax highlight is wrong, errors not detected

0
Den Solo reports:

Object[] data = new Object[2];
data[0] = 1;
data[1] = 2;
boolean is1 = data[0] == 1;
boolean is2 = data[1] == 2;
System.out.printf("%b, %b", is1, is2);


Please have a look at this code - it can't be compiled because of "incompatible types: java.lang.Object and int" for lines
4 and 5. But Idea doesn't highlight these lines as erroneous..

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments