You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Updated) (JIRA)" <ji...@apache.org> on 2012/02/23 15:22:49 UTC

[jira] [Updated] (WICKET-3805) Change Component#visitParents to enable visitors of any type

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

Martin Grigorov updated WICKET-3805:
------------------------------------

    Attachment: WICKET-3805.patch

Here is a solution which uses ClassVisitFilter to decide whether the parent class (? extends MarkupContainer) is also some other type (an interface).

Additionally I changed the signature to accept only '? extends MarkupContainer' as first parameter because this is the minimum what a parent class can be.
                
> 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
>    Affects Versions: 1.5-RC4
>            Reporter: Pedro Santos
>            Assignee: Martin Grigorov
>            Priority: Minor
>             Fix For: 6.0.0
>
>         Attachments: WICKET-3805.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira