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
Priority: Minor
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.