You've opened all packages for reflection (which can also be done with "open module bento.fx {}"). But this doesn't export anything. So you need to replace all the "opens" instructions with "exports", and optionally enable reflection to all packages with open module.
This is my biggest annoyance with JPMS, it's not possible to export everything easily. Too opinionated imo, if I wanted to do that I should be able to. It's a very common use case, especially in smaller modules.
Might also make the change to require jakarta.annotation with requires static, that way it's optional and the module system doesn't throw a fit if its not present.
View all comments
Show parent comment
2
u/winian Apr 26 '25
You've opened all packages for reflection (which can also be done with "open module bento.fx {}"). But this doesn't export anything. So you need to replace all the "opens" instructions with "exports", and optionally enable reflection to all packages with open module.
This is my biggest annoyance with JPMS, it's not possible to export everything easily. Too opinionated imo, if I wanted to do that I should be able to. It's a very common use case, especially in smaller modules.
Might also make the change to require jakarta.annotation with requires static, that way it's optional and the module system doesn't throw a fit if its not present.