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.