Custom ConstraintValidator injects null in native-image #34079
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
demo project link: https://github.com/mingchiuli/demo
In Spring boot 3.3.6, I found if I injected a component in a implement Class of ConstraintValidator in JVM mode, it worked normal:
(console output:)
But It would generated a NullPointerExeception in GraalVM's native-image :
It seems the
TestComponent
can't be injected in native-image modeThe text was updated successfully, but these errors were encountered: