Skip to content
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

Support for custom --add-opens flags #8

Closed
zyxist opened this issue Mar 8, 2018 · 0 comments
Closed

Support for custom --add-opens flags #8

zyxist opened this issue Mar 8, 2018 · 0 comments

Comments

@zyxist
Copy link
Owner

zyxist commented Mar 8, 2018

Guice 4.2 relies on cglib library, which makes an illegal reflection access to java.lang module. If we try to run Guice-based application with Gradle and Chainsaw, we get an error from JVM that java.base does not open java.lang to com.google.guice.

It seems that there is no good solution for that at the Guice side, until Guice fully migrates to Jigsaw and cglib is fixed. To deal with it, we must add the following CLI flag: --add-opens=java.base/java.lang=com.google.guice. Currently, there is no way to configure such custom flags via Chainsaw.

zyxist added a commit that referenced this issue Mar 8, 2018
zyxist added a commit that referenced this issue Mar 8, 2018
@zyxist zyxist closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant