-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement
Description
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 or getForObject()
/ getForEntity()
should call internally exchange()
with a ParameterizedTypeReference
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 using null
default parameters where that's possible could make sense.
Issue Links:
- Clarify Kotlin reified type parameter extensions documentation about type erasure [SPR-16273] #20820 Clarify Kotlin reified type parameter extensions documentation about type erasure ("duplicates")
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issueA duplicate of another issuetype: enhancementA general enhancementA general enhancement