Improve RestOperations Kotlin extensions [SPR-16274] #20821
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Sébastien Deleuze opened SPR-16274 and commented
RestOperations
Kotlin extensions should be improved on the following points.1. Since type erasure can be fixed only when using
ParameterizedTypeReference
based Java methods, API documentation should be updated to avoid mentioning reified type parameters orgetForObject()
/getForEntity()
should call internallyexchange()
with aParameterizedTypeReference
parameter.Spring Boot
TestRestTemplate
extensions should be updated as well.2. Nullability of parameters should be consistent with the Java API. It is currently not the case for
requestEntity
for example. Also potentially usingnull
default parameters where that's possible could make sense.Issue Links:
The text was updated successfully, but these errors were encountered: