@HttpExchange interface does not resolve return type correctly while using with suspending methods #30266
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
theme: kotlin
An issue related to Kotlin support
type: bug
A general bug
Milestone
Affects: 6.0.7
@HttpExchange annotated methods works as expected for simple return types, but not for generic types. For example a function expected to return List, but HttpServiceProxy resolves it as String.
Here is a test case :
Result:
When you change function signature as
fun body(): Mono<List<String>>
it returnsParameterizedTypeReference<java.util.List<java.lang.String>>
as expected.As far as i see, Only "suspending methods" affected by it. Flows works as expected.
The text was updated successfully, but these errors were encountered: