From 39ffb5c82a4f1a66c8ac4ea73478e40d981ecbf7 Mon Sep 17 00:00:00 2001 From: kske Date: Thu, 25 Nov 2021 14:29:06 +0100 Subject: [PATCH] Fix module-info instructions in README Reflective access has to be allowed from the Event Bus core package to a package in the user's project, not the entire module. Thank you @delvh for noticing this! --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 493d672..7a21f40 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,10 @@ Then, require the Event Bus Core module in your `module-info.java`: requires dev.kske.eventbus.core; ``` -If you intend to use event handlers that are inaccessible to Event Bus by means of Java language access control, make sure to allow reflective access from your module: +If you intend to use event handlers that are inaccessible to Event Bus by means of Java language access control, make sure to allow reflective access to your package for Event Bus: ```java -opens my.module to dev.kske.eventbus.core; +opens my.package to dev.kske.eventbus.core; ``` ## Polymorphic Event Handlers