Ok, so the current behavior is per the spec (event types are derived from the runtime class of the event object). In theory, we could also derive the types from an {{Event}} injection point. But we should double check so that we don't break anything. It Actually, it seems we cannot simply detect a lambda instance reliably (see also http://stackoverflow . com/questions/23870478/how-to-correctly-determine-that-an-object-is-a-lambda). Also this will not help if {{BeanManager.fire()}} is used.
|