The documentation of EventBus states that
"Events are routed based on their type — an event will be delivered to any
subscriber for any type to which the event is assignable."
This is not true for generics (a Foo<Y> will also be delivered to @Subscribe
to(Foo<X>) even though Foo<Y> is not assignable to Foo<X>). So, instead of
making the programmer wonder how EventBus could possibly guess the erased
generic information, it would be helpful to warn that it cannot.
Original issue reported on code.google.com by ClovisSe...@gmail.com on 28 Apr 2015 at 8:58
Original issue reported on code.google.com by
ClovisSe...@gmail.com
on 28 Apr 2015 at 8:58