Revisit handling of missing fields (without default values) for immutable data classes [SPR-15877] #20432
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Juergen Hoeller opened SPR-15877 and commented
Following up on #20426 and #20101, there is still a case to be revisited: namely missing fields (without default values provided by Kotlin) which we currently inject as a
null
value. While this can be acceptable for object types, it leads to anIllegalArgumentException
on construction for primitive types which is definitely worth improving. We could also reject such missing fields upfront if there are no default values or optional declarations for them.Also, the WebFlux
ModelAttributeMethodArgumentResolver
needs to catch up around all of those RC4 refinements eventually.Affects: 5.0 RC3
Issue Links:
@ConstructorProperties
)Referenced from: commits ec345bf
1 votes, 4 watchers
The text was updated successfully, but these errors were encountered: