-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix incorrect @onKey
method header check
#61
Labels
Comments
I just noticed there is a bug: boolean hasEventParameter = method.getParameterCount() == 1 && method.getParameterTypes()[0].isAssignableFrom(KeyEvent.class); If the second condition is false, e.g. because the method is declared as @onKey(...)
void wrongKey(String key) {
} Then it will call So either the second condition can be removed, or there needs to be separate error. Possibly even an annotation processor check which should be trivial. |
Fixed in #64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fulibFx/framework/src/main/java/org/fulib/fx/controller/ControllerManager.java
Line 669 in 6fde075
The text was updated successfully, but these errors were encountered: