Missing reflection hint for custom PropertySourceFactory
in native image
#30175
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
I have a custom YAML resource that should be mapped to a Java property class. I used to do this using the following approach:
where
YamlPropertySourceFactory
is pretty simple:Unfortunately my custom factory causes
NoSuchMethodException
when I build my application into a Spring Native image and then run it.Please refer to spring-native-issues repo with a complete demo. Please make sure you're using
property-source
branch of the repo.The text was updated successfully, but these errors were encountered: