[ 
https://issues.apache.org/jira/browse/WICKET-2646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marat Radchenko updated WICKET-2646:
------------------------------------

    Description: 
Improvement for error messages from StatelessChecker:
replace
throw new IllegalArgumentException(msg + " Offending component: " + o);

with
throw new IllegalArgumentException(msg + " Offending component: " + 
((Component)o)toString(true));

Reasoning:
Current message contains Component.toString(false) output that doesn't contain 
component path, thus making it harder to identify which component is to blame.

  was:
Improvement for error messages from StatelessChecker:
replace
throw new IllegalArgumentException(msg + " Offending component: " + o);

with
throw new IllegalArgumentException(msg + " Offending component: " + 
((Component)o)toString(true);

Reasoning:
Current message contains Component.toString(false) output that doesn't contain 
component path, thus making it harder to identify which component is to blame.


> Better error reporting from StatelessChecker
> --------------------------------------------
>
>                 Key: WICKET-2646
>                 URL: https://issues.apache.org/jira/browse/WICKET-2646
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.4.5
>            Reporter: Marat Radchenko
>
> Improvement for error messages from StatelessChecker:
> replace
> throw new IllegalArgumentException(msg + " Offending component: " + o);
> with
> throw new IllegalArgumentException(msg + " Offending component: " + 
> ((Component)o)toString(true));
> Reasoning:
> Current message contains Component.toString(false) output that doesn't 
> contain component path, thus making it harder to identify which component is 
> to blame.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to