Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic events cause runtime ClassCastException #16

Closed
ZeroMemes opened this issue May 24, 2023 · 0 comments
Closed

Generic events cause runtime ClassCastException #16

ZeroMemes opened this issue May 24, 2023 · 0 comments
Labels
Milestone

Comments

@ZeroMemes
Copy link
Owner

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.

@ZeroMemes ZeroMemes added the bug label May 24, 2023
@ZeroMemes ZeroMemes added this to the 3.0.0 milestone May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant