Intro
While Spring Data Elasticsearch worked fine with Spring Boot 2.5.x + Spring Native 0.10x
It stopped working in Spring Boot 2.6.x + 0.11x.
During Bootstrap we now get Reflection errors like "no suitable constructor found ..."
Description
I suspect a similiar regression like in #1370,
where the Behavior of TypeHint changed.
And there is als a very similar issue to Spring Data Mongodb
#1487
I already started adding Typehints one by one .. but this isn't ending:
@typehint(types = org.apache.logging.log4j.message.ParameterizedMessageFactory.class, access = {TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS})
@typehint(types = org.springframework.data.elasticsearch.repository.support.SimpleElasticsearchRepository.class, access = {TypeAccess.DECLARED_CLASSES, TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.DECLARED_METHODS})
Example
I created a simpler branch of the existing repo, that needs to build with the Maven Profile "docker-image-native"
This is missing the Typehints above to get the original errors.
https://github.com/goafabric/example-search-service/tree/native-image-regression
Build works .. bootstrap fails.
I suspect that the existing Typehints for SPring Data Elastic + Mongodb need to be reworked similar like #1370