Skip to content

WICKET-6913 Replace CGLib with ByteBuddy#476

Merged
martin-g merged 7 commits intomasterfrom
WICKET-6913-replace-cglib-with-bytebuddy-wicket-10.x
Aug 16, 2021
Merged

WICKET-6913 Replace CGLib with ByteBuddy#476
martin-g merged 7 commits intomasterfrom
WICKET-6913-replace-cglib-with-bytebuddy-wicket-10.x

Conversation

@martin-g
Copy link
Member

CGLib is not well maintained and it does not work with JDK 17+.

TODO: Update the Objenesis related classes too and wicket-jmx
(cherry picked from commit 8e1a15b)
Replace all occurrences of "cglib" with "byte-buddy".
Merge AbstractByteBuddyInterceptor and ByteBuddyInterceptor. I see no need of both. If an application needs special impl of #writeReplace() then it could extend ByteBuddyInterceptor and override it.
Improve Maven dependency management related to byte-buddy.
This is needed because otherwise we may get a cached generated class with wrong interceptor (i.e. IProxyTargetLocator) for classes with generics
@martin-g martin-g merged commit 8cfffea into master Aug 16, 2021
@martin-g martin-g deleted the WICKET-6913-replace-cglib-with-bytebuddy-wicket-10.x branch August 16, 2021 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants