org.greenrobot.eventbus.EventBus#post doesn't support generic type.
Halcyon666 opened this issue · 3 comments
Halcyon666 commented
Q1 [org.greenrobot.eventbus.EventBus#post doesn't support generic type.]
- I integer the EventBus with SpringBoot, using
@Configuration
Inject MyselfEventBus which extends the greenrobot EventBus, and register the subscriber with generic param type . - I post the event using the unanimous generic param type.
- THEN I CALL THE POST METHOD,THERE HINTS No subscribers registered for event XXX
- WHEN I remove both the generic param type in subscriber and post method, the eventBus works.
I don't know whether it is problem, maybe My usage situation is odds.
Q2 [through reflect invoke the method, and not return the result, how I design my program,maybe query the result later, could there have some callback or future]
Halcyon666 commented
Wish the replies, thanks guys
greenrobot-team commented
If I understand this correctly, see #23 about this.
Halcyon666 commented
If I understand this correctly, see #23 about this.
yeah, u are right. Thanks ,I’ll close the issue. One day maybe support this.