History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-5433
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Eugene Vigdorchik
Reporter: Serge Baranov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Boxing/unboxing syntax highlight is wrong, errors not detected

Created: 04 Apr 06 14:01   Updated: 05 Apr 06 15:34
Component/s: Editor. Error Highlighting
Fix Version/s: 5.1.1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 4,155
Fixed in build: 5,217
Severity: Medium


 Description  « Hide
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..



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.