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

Missing exports statement in module-info #1822

Open
michel-kraemer opened this issue Nov 10, 2019 · 0 comments
Open

Missing exports statement in module-info #1822

michel-kraemer opened this issue Nov 10, 2019 · 0 comments
Assignees

Comments

@michel-kraemer
Copy link

I tried to use GraalVM JavaScript on OpenJDK 12 and I got the following error message when evaluating a JavaScript file with a regular expression in it:

cannot access class com.oracle.truffle.regex.RegexLanguage (in module com.oracle.truffle.regex) because module com.oracle.truffle.regex does not export com.oracle.truffle.regex to module org.graalvm.truffle

I suppose TRegEx is missing an exports statement in its module-info, because when I added --add-exports com.oracle.truffle.regex/com.oracle.truffle.regex=org.graalvm.truffle to my java command, everything worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants