Skip to content

Conversation

@artembilan
Copy link
Member

Related to: https://stackoverflow.com/questions/68637283/how-to-customize-response-in-spring-integration-using-webflux-when-a-specific-er

The function provided for the ConsumerEndpointSpec.customizeMonoReply() may convert
incoming value to something else.
With wildcards it cannot be compiled without casting.

  • Add <T, V> generic arg for the customizeMonoReply() to conform in and out types carrying.
  • Modify WebFluxDslTests to demonstrate the problem and confirm the fix

Cherry-pick to 5.4.x & 5.3.x

Related to: https://stackoverflow.com/questions/68637283/how-to-customize-response-in-spring-integration-using-webflux-when-a-specific-er

The function provided for the `ConsumerEndpointSpec.customizeMonoReply()` may convert
incoming value to something else.
With wildcards it cannot be compiled without casting.

* Add `<T, V>` generic arg for the `customizeMonoReply()` to conform in and out types carrying.
* Modify `WebFluxDslTests` to demonstrate the problem and confirm the fix

**Cherry-pick to `5.4.x` & `5.3.x`**
@garyrussell garyrussell merged commit 024ffd1 into spring-projects:main Aug 9, 2021
@garyrussell
Copy link
Contributor

...and cherry-picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants