Skip to content

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

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions