You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MyService.kt:35:49 Argument type mismatch: actual type is 'kotlin.String?', but 'kotlin.Any' was expected.
I upgraded to Kotlin 2.1 in a separate commit so it looks like the extra checks might come from Spring Framework 7.0 itself. The new behavior looks more correct to me but I am wondering why it isn't failing in 6.x.
The text was updated successfully, but these errors were encountered:
This is a side effect of #28797 due to the fact that the related Object... uriVariables parameter element nullness was not managed with JSR 305 while it is now. The implementation indicates that URI variables are nullable and that makes sense to be lenient here, so I will refine the nullness of that API accordingly.
I have this Kotlin code using Spring Boot 3/Spring Framework 6.2:
Where
uri
takes a String and a vararg ofObject
.Upgrading to Spring Framework 7, I am getting:
I upgraded to Kotlin 2.1 in a separate commit so it looks like the extra checks might come from Spring Framework 7.0 itself. The new behavior looks more correct to me but I am wondering why it isn't failing in 6.x.
The text was updated successfully, but these errors were encountered: