Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-1715

Generified SimplePageAuthorizationStrategy violates its contract

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-M2
    • 1.4-M3
    • wicket
    • None
    • any

    Description

      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

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            ilyabo Ilya Boyandin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: