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

Key: IDEABKL-3732
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Nikita
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Invalid red code

Created: 31 Jul 06 18:09   Updated: 06 Aug 06 20:57
Component/s: Editor. Error Highlighting
Affects Version/s: None
Fix Version/s: None

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

Build: 5,581
Severity: High


 Description  « Hide
isDatesInWorkRange() should be highlighted instead of msg.

public class TestClass {

private String verifyDates() { String msg = checkDates(); return "".equals(msg) ? isDatesInWorkRange() : msg; }

private boolean isDatesInWorkRange() { return false; }

private String checkDates() { return ""; }
}



 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 06 Aug 06 20:02
expected type (String) is not taken into account when determining the type for ternary operator, so any part of the expression could be highlighted. This can be at most treated as a feature request.

Nikita - 06 Aug 06 20:57
OK.. feature.