Skip to content

RSocketRequester.ResponseSpec Kotlin extensions issue #23185

Closed

Description

@slawluc

Affects: Spring Framework 5.2.0-M3

Really glad you're integrating Kotlin, Coroutines and RSocket into the messaging module @sdeleuze

I think inline reified generics are needed on these new methods.

  • data
  • retrieveFlow
  • retrieveFlux
  • retrieveAndAwait
  • retrieveMono

requester.route("myRoute").data("123").retrieveFlow<String>()
gives me the following error

Caused by: java.lang.IllegalArgumentException: No decoder for ? at o.s.m.r.RSocketStrategies.decoder(RSocketStrategies.java:85) at o.s.m.r.DefaultRSocketRequester$DefaultResponseSpec.retrieveFlux(DefaultRSocketRequester.java:366) at o.s.m.r.DefaultRSocketRequester$DefaultResponseSpec.retrieveFlux(DefaultRSocketRequester.java:339)
I have a patch to fix the code and test in gist.
I can submit as a pull request shortly

Activity

  1. added
    status: waiting-for-triage
    on Jun 24, 2019
  2. added a commit that references this issue on Jun 24, 2019
    d94542a
  3. self-assigned this
    on Jun 24, 2019
  4. added
    in: messaging
    type: bug
    on Jun 24, 2019
  5. added this to the 5.2 RC1 milestone on Jun 24, 2019
  6. removed
    status: waiting-for-triage
    on Jun 24, 2019
  7. added a commit that references this issue on Jun 24, 2019
    848bd8c
  8. slawluc commented on Jun 24, 2019

    @slawluc
    ContributorAuthor

    Added a pull request 23189

  9. added a commit that references this issue on Jul 8, 2019
    4bced46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: messagingtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions