Describe the bug
spring-cloud-starter-openfeign: 4.1.0
Unable to run native compiled application with FeignClients.
Caused by: org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively invoke method public default feign.ResponseInterceptor$Chain feign.Capability.enrich(feign.ResponseInterceptor$Chain) without it being registered for runtime reflection. Add public default feign.ResponseInterceptor$Chain feign.Capability.enrich(feign.ResponseInterceptor$Chain) to the reflection metadata to solve this problem.
It works on 4.1.0-RC1.
Sample
Create a simple FeignClient and run native compiled executable.
Describe the bug spring-cloud-starter-openfeign:
4.1.0
Unable to run native compiled application with FeignClients.
Caused by:
org.graalvm.nativeimage.MissingReflectionRegistrationError: The program tried to reflectively invoke method public default feign.ResponseInterceptor$Chain feign.Capability.enrich(feign.ResponseInterceptor$Chain) without it being registered for runtime reflection. Add public default feign.ResponseInterceptor$Chain feign.Capability.enrich(feign.ResponseInterceptor$Chain) to the reflection metadata to solve this problem.
It works on
4.1.0-RC1
.Sample Create a simple FeignClient and run native compiled executable.
Dependencies versions
Workaround: