If a Listener is created for an event type with a generic type parameter, the type parameter won't be respected at runtime. This can lead to unexpected ClassCastExceptions being thrown.
Adding support for generic events could be an enhancement in the future, but for now, it should throw an exception during discovery.
If a Listener is created for an event type with a generic type parameter, the type parameter won't be respected at runtime. This can lead to unexpected ClassCastExceptions being thrown.
Adding support for generic events could be an enhancement in the future, but for now, it should throw an exception during discovery.