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

AOT-generated code produces deprecation warnings when using a deprecated class for autowiring #33295

Closed
snicoll opened this issue Jul 31, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented Jul 31, 2024

If autowiring is used against a deprecated class, the AOT-generated code doesn't suppress the warnings. Here is an example, courtesy of @wilkinsona:

AutowiredMethodArgumentsResolver.forMethod("setLobHandler", LobHandler.class).resolve(registeredBean, args -> instance.setLobHandler(args.get(0)));

where LobHandler is deprecated.

@snicoll snicoll added type: bug A general bug theme: aot An issue related to Ahead-of-time processing labels Jul 31, 2024
@snicoll snicoll added this to the 6.1.12 milestone Jul 31, 2024
@snicoll snicoll self-assigned this Jul 31, 2024
@jhoeller jhoeller added the in: core Issues in core modules (aop, beans, core, context, expression) label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants