Open wilkinsona opened 1 year ago
How to fix this issue. I aslo get this with mongock:
Exception in thread "main" org.springframework.boot.context.properties.bind.MissingParametersCompilerArgumentException: Constructor binding in a native image requires compilation with -parameters but the following classes were compiled without it: io.mongock.driver.mongodb.springdata.v4.config.MongoDBConfiguration$WriteConcernLevel
@nhandev552 We prefer questions to be asked on Stack Overflow.
It would be nice to perform analysis of AOT processing failures in the same way as we do for failures during application startup. I've prototyped something as a proof of concept but it's still quite rough around the edges. There's a fair amount of copy-paste between
SpringApplicationAotProcessor
andSpringApplication
. The resulting output also saysAPPLICATION FAILED TO START
which is misleading for an AOT processing failure:I'm also not sure about reusing the
FailureAnalyzer
contract as it means that the AOT-specific analysers will be available at runtime which feels a bit wasteful if we end up with several of them.