Skip to content

Fall back to JDK proxy if CGLIB proxy creation fails - #35344

Open
YongGoose wants to merge 1 commit into
spring-projects:mainfrom
YongGoose:feature/31634
Open

Fall back to JDK proxy if CGLIB proxy creation fails#35344
YongGoose wants to merge 1 commit into
spring-projects:mainfrom
YongGoose:feature/31634

Conversation

@YongGoose

Copy link
Copy Markdown
Contributor

Prior to this change, if the default CGLIB proxy creation failed for a non-subclassable target class (e.g., due to a private constructor), the ApplicationContext would fail to start.

fixes#31634

Prior to this change, if the default CGLIB proxy creation failed for a
non-subclassable target class (e.g., due to a private constructor), the
ApplicationContext would fail to start.
Signed-off-by: yongjunhong <yongjunh@apache.org>
@spring-projects-issuesspring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Aug 19, 2025
@sbrannensbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Aug 19, 2025
@YongGoose

Copy link
Copy Markdown
ContributorAuthor

@sbrannen
I think this feature could be helpful for the Spring Framework.
Could you give me some feedback on it?

@YongGoose

Copy link
Copy Markdown
ContributorAuthor

@sbrannen
When you have time, could you please take a look at this PR? 🙇🏻‍♂️🙇🏻‍♂️

ps. Happy new year!!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: waiting-for-triageAn issue we've not yet triaged or decided ontype: enhancementA general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fall back from cglib to JDK proxies when possible

3 participants

@YongGoose@sbrannen@spring-projects-issues