This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Description
Shouldn't be this test the other way around?
Event.isAssignableFrom(parameterTypes[0])
instead of
|
else if(hasArgument && parameterTypes[0].isAssignableFrom(Event)) { |
At the moment I cannot derive form Event and use this subclass directly in subscriber method.
class MyEvent extends Event {
...
}
class Handler {
@Subcriber("myEvent")
void handleEvent(MyEvent event) {
}
}
This does not work.
A workaround is as follows:
class Handler {
@Subcriber("myEvent")
void handleEvent(Event event) {
MyEvent e = (MyEvent) event
...
}
}