Kotlin 'Nothing' type parameter alter JavaConfig bean resolution even when not directly involved #30501
Labels
status: invalid
An issue that we don't feel is valid
theme: kotlin
An issue related to Kotlin support
The usage of Kotlin
Nothing
as type parameter seems to alter JavaConfig bean resolution even when this type parameter seems not directly involved.Please consider the following code :
Output :
But, the application will start if :
B
type parameter ofCls
classNothing
byVoid
(or any other class)It seems quite weird.
I know that Kotlin
Nothing
will be really hard to fully handle as it doesn't exist in Java but I was surprised that such use case were impacted.Tested on : Kotlin 1.8.20, Boot 2.7.10
May be related to #22313 but I'm not sure and does't want to add useless noise on it
The text was updated successfully, but these errors were encountered: