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

Key: IDEA-19110
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Bas Leijdekkers
Votes: 1
Watchers: 1
Operations

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

Do not highlight all arguments if there is only a problem with one

Created: 13 Aug 08 14:51   Updated: 13 Aug 08 17:46
Component/s: Editor. Error Highlighting

Build: 8,708
Severity: High


 Description  « Hide
IDEA often highlights all arguments of a method call complaining a method with the proper signature cannot be found, when in fact there is only a problem with one of the arguments. This problem can then be hard to spot. For example consider the following code. The char array "chars" is not defined and all arguments of String.valueOf() are highlighted with the warning "valueOf(char[], int, int) in String cannot be applied to (null, int, int)". Note that in the case of a "new" expression IDEA does the right thing and only highlights the "chars" argument.
class A {{
  String.valueOf(chars, 0, 10); // all arguments are highlighted when only chars has a problem
  new String(chars, 0, 10); // highlighting is good here.
}}


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