What about generics with upper/lower bound?
E.g.
@Inject
|
Event<List<? extends Number>> event;
|
|
public void workHard() {
|
event.fire(new ArrayList<String>());
|
}
|
then you have an observer with @Observes List<? extends Integer>.
Does the observer get notified? Can you determine this in all cases? Just a wild though, with the complexity of generics I am getting a bit lost
|