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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.8.0, 8.0.0-M7
    • Component/s: wicket-spring
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: