Bypass method access checks for event handlers

This commit is contained in:
2020-09-07 10:38:38 +02:00
parent 70bcfd5125
commit f407021cea
2 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,7 @@ final class EventHandler implements Comparable<EventHandler> {
this.listener = listener;
this.method = method;
this.annotation = annotation;
method.setAccessible(true);
}
/**