Generic events cause runtime ClassCastException
Closed this issue · 0 comments
ZeroMemes commented
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.