BindingReflectionHintsRegistrar
do not take into account the boxed type Boolean
#33380
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
theme: kotlin
An issue related to Kotlin support
type: bug
A general bug
Milestone
spring version: 6.1.8
example:
response:
stack trace:
issue reproduction repository: https://github.com/czp3009/spring-native-image-boxed-type-issue-reproduction
Possible causes:
The class
BindingReflectionHintsRegistrar
not consider the java boxed type 'Boolean' but kotlin nullable type will compiled into boxed typespring-framework/spring-core/src/main/java/org/springframework/aot/hint/BindingReflectionHintsRegistrar.java
Line 112 in 1aea016
the code simply inference the java primitive type 'boolean''
if a method name starts with 'is' and return type is 'Boolean', the method will not be registered to native hint
The text was updated successfully, but these errors were encountered: