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

Igor Vaynberg resolved WICKET-1715.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4-M3
         Assignee: Igor Vaynberg

> Generified SimplePageAuthorizationStrategy violates its contract
> ----------------------------------------------------------------
>
>                 Key: WICKET-1715
>                 URL: https://issues.apache.org/jira/browse/WICKET-1715
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-M2
>         Environment: any
>            Reporter: Ilya Boyandin
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4-M3
>
>
> The only constructor of SimplePageAuthorizationStrategy  was generified so 
> that its first parameter (securePageSuperType) has to be a subtype of 
> Component:
> public <C extends Component<?>, S extends Page<?>> 
> SimplePageAuthorizationStrategy(
>               final Class<C> securePageSuperType, final Class<S> 
> signInPageClass)
> This makes using an interface to mark secure pages impossible, although the 
> javadoc for the constructor says: 
>  * @param securePageSuperType
>  *            The class or interface supertype that indicates that a given 
> Page requires
>  *            authorization

-- 
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