[
https://issues.apache.org/jira/browse/WICKET-3805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059876#comment-13059876
]
Martin Grigorov commented on WICKET-3805:
-----------------------------------------
What will happen if you call:
visitParents(InterfaceX.class, new IVisitor<InterfaceY, Anything> {}) ?
and there is no relation between InterfaceX with InterfaceY.
Wicket will search for InterfaceX and if there is such parent then it will try
to pass it to the visitor where it will fail with ClassCastException.
> Change Component#visitParents to enable visitors of any type
> ------------------------------------------------------------
>
> Key: WICKET-3805
> URL: https://issues.apache.org/jira/browse/WICKET-3805
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.5-RC4
> Reporter: Pedro Santos
> Priority: Minor
> Attachments: WICKET-3805.patch
>
>
> The generic type of c accepts any type, but the one in IVisitor restrict it
> to Components.
> Comonent#visitParents(final Class<?> c, final IVisitor<Component, R> visitor)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira