dashorst opened a new pull request, #1726: URL: https://github.com/apache/wicket/pull/1726
Master counterpart of #1722, which fixes a regression of WICKET-7204 on 10.x. Master has the same `ByteBuddyProxyFactory`, and the same failure. Since WICKET-7204 a ByteBuddy proxy class is defined with `UsingLookup` in the class loader of the proxied type, but the proxy class cache was still keyed on the application's class resolver, i.e. the context class loader of the current thread. A thread with another context class loader missed the cache and defined the proxy class a second time in the same loader, which fails with `LinkageError: attempted duplicate class definition`. The cache is now keyed on the class loader the proxy is defined in. Types in a `java.*` package keep their own path: they are renamed, defined in a wrapper loader and cached for the application's loader, because `java.sql` and other platform types have a loader that cannot see Wicket's interfaces. The commits are Andrea's two from #1722 plus a cleanup on top, cherry-picked unchanged. Squash on merge. Generated-by: Claude Code (Claude Opus 5.5) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
