See https://github.com/spring-projects-experimental/spring-native/issues/1097

If a bean has an unresolved generic, AOT generates Object, rather than conveying the unresolved generic. As a result, trying to inject the bean with a resolved generic does not work. This typically affects template-based beans where any type is supported, but AOT locks down things on Object.