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!
This commit is contained in:
Kai S. K. Engelbart 2021-11-25 14:29:06 +01:00
parent 3fccb809c8
commit 39ffb5c82a
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
1 changed files with 2 additions and 2 deletions

View File

@ -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