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

[wicket-ioc] LazyInitProxyFactory CGLIB proxies naming strategy may cause java.lang.IllegalAccessError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.8.0, 8.0.0-M7
    • wicket-spring

    Description

      A CGLib proxy created by LazyInitProxyFactory may cause java.lang.IllegalAccessError when the target class has "package-private" method.

      I think the root cause of this problem is the choosen strategy for naming proxies (see WICKET-1162) : after adding "WICKET_" before the package name of the target class, the proxy becomes a member of a new package. (This behaviour is different as which is used by CGLib DefaultNamingPolicy).

      Why not adding "_WICKET" after the name of the target class ?

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            smathez S Mathez
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: