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
GH-2276 - Support default, primitive Kotlin attributes.
This bugfix allows primitive attributes with defaults in Kotlin based domain classes. It comes at a price however: We cannot throw a mapping exception hinting at the fact a primitive had been tried to be assigned with null in standard java. The ` MappingException`’s cause will than be a `NullpointerException`.
The value of supporting Kotlin defaults is in this case higher than the error message, which was "received" with a trick anyway (relying on the conversion service that it throws an exception.
This fixes#2276.
"org.springframework.dao.TypeMismatchDataAccessException: Could not convert NULL into boolean; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [boolean] for value 'null'; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type")
0 commit comments