
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
None
|
|
Image Attachments:
|
|
|
Environment:
|
Windows XP SP2
|
|
| Build: |
7,549
|
| Severity: |
Medium
|
I had a method call which had mismatched arguments due to a change in the argument type.
When I moused over the syntax error, the IDEA error tooltip looked very bad. Here are the problems I saw:
1) The tooltip was stretched across the entire screen.
2) There were large spaces after some of the arguments
3) The tooltip displayed a scrollbar, but when I tried to use the scrollbar, the tooltip disappeared.
So I couldn't see the entire message.
Suggestions:
1) Is it possible for IDEA to reformat the method signature to ensure only a maximum number of chars are shown
per row?
2) I think IDEA should allow the tooltip to expand vertically more than it allows currently.
3) Can IDEA be smarter about highlighting the mismatched arguments in question? If I could tell just by looking
at the syntax error that argument 3 was mismatched, I wouldn't even need to look at this tooltip.
Workaround:
I have to look at the errror message printed by the compiler to figure out the problem.
Here is the method signature:
private AlarmRule loadAlarmRule(int ruleId, HashMap actionMap, HashMap<Integer, ArrayList<AlarmRuleAttribute>> attributeMap, HashMap<Integer, ArrayList<AlarmRuleGroup>> groupMap, HashMap<Integer, HashMap<Object, String>> instanceText,
HashMap<Integer, Escalations> escObjs, ArrayList ruleEsc)
{
}
Compiler Error Message:
D:\workspace\80\web\java\com\proactivenet\api\alarmrule\AlarmRuleCache.java (393:9) loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>)
D:\workspace\80\web\java\com\abc\api\alarmrule\AlarmRuleCache.java:393: loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>)
|
|
Description
|
I had a method call which had mismatched arguments due to a change in the argument type.
When I moused over the syntax error, the IDEA error tooltip looked very bad. Here are the problems I saw:
1) The tooltip was stretched across the entire screen.
2) There were large spaces after some of the arguments
3) The tooltip displayed a scrollbar, but when I tried to use the scrollbar, the tooltip disappeared.
So I couldn't see the entire message.
Suggestions:
1) Is it possible for IDEA to reformat the method signature to ensure only a maximum number of chars are shown
per row?
2) I think IDEA should allow the tooltip to expand vertically more than it allows currently.
3) Can IDEA be smarter about highlighting the mismatched arguments in question? If I could tell just by looking
at the syntax error that argument 3 was mismatched, I wouldn't even need to look at this tooltip.
Workaround:
I have to look at the errror message printed by the compiler to figure out the problem.
Here is the method signature:
private AlarmRule loadAlarmRule(int ruleId, HashMap actionMap, HashMap<Integer, ArrayList<AlarmRuleAttribute>> attributeMap, HashMap<Integer, ArrayList<AlarmRuleGroup>> groupMap, HashMap<Integer, HashMap<Object, String>> instanceText,
HashMap<Integer, Escalations> escObjs, ArrayList ruleEsc)
{
}
Compiler Error Message:
D:\workspace\80\web\java\com\proactivenet\api\alarmrule\AlarmRuleCache.java (393:9) loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>)
D:\workspace\80\web\java\com\abc\api\alarmrule\AlarmRuleCache.java:393: loadAlarmRule(int,java.util.HashMap,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.HashMap<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.HashMap<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.ArrayList) in com.abc.api.alarmrule.AlarmRuleCache cannot be applied to (int,java.util.Map<java.lang.Integer,java.util.List<com.abc.api.alarmrule.AlarmRuleAction>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleAttribute>>,java.util.Map<java.lang.Integer,java.util.ArrayList<com.abc.api.alarmrule.AlarmRuleGroup>>,java.util.Map<java.lang.Integer,java.util.HashMap<java.lang.Object,java.lang.String>>,java.util.Map<java.lang.Integer,com.abc.api.alarmrule.Escalations>,java.util.List<java.util.Map>) |
Show » |
| There are no comments yet on this issue.
|
|