Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反射框架使用ByteBuddy替换cglib #533

Open
KamToHung opened this issue Feb 23, 2025 · 1 comment
Open

反射框架使用ByteBuddy替换cglib #533

KamToHung opened this issue Feb 23, 2025 · 1 comment
Labels

Comments

@KamToHung
Copy link
Collaborator

KamToHung commented Feb 23, 2025

首先感谢您使用 DynamicTp,如果对项目有好的想法建议,请按照下述模板提议讨论,请使用 Markdown 语法

方案描述

cglib官方有一段描述:

IMPORTANT NOTE: cglib is unmaintained and does not work well (or possibly at all?) in newer JDKs, particularly JDK17+. If you need to support newer JDKs, we will accept well-tested well-thought-out patches... but you'll probably have better luck migrating to something like ByteBuddy.

对JDK17+运用可能不是很好,建议我们别的框架代替cglib,比如ByteBuddy

Image

官网提供测试报告,总体上是有优势的

应用场景

动态代理

难度风险

外部依赖

ByteBuddy

@MaMengzhen
Copy link

反射框架使用ByteBuddy替换cglib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants