This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
Investigate Adding Fallback for Beans with no Matching Generic Parameters #1097
Labels
for: external-project
For an external project and not something we can fix
type: compatibility
Native image compatibility issue
#1078 (comment)
For example, Boot auto configures a
KafkaTemplate<Object, Object>
without AOT, the framework has several layers fallbacks such thatKafkaTemplate<String, String>
can be auto wired as a dependency.Unfortunately, AOT does not support this "feature" so there is no match during wiring since a bean with the expected generic type parameters is required.
While this might be the correct behavior, it feels like missing functionality with AOT.
The work around in the Kafka samples was to use
<Object, Object>
.Perhaps a better work around would be to inject the beans with no generics and perform an unchecked cast....
The text was updated successfully, but these errors were encountered: