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

GraalVM does not allow use of java.lang.String style access #432

Open
jwulf opened this issue Jan 30, 2020 · 1 comment
Open

GraalVM does not allow use of java.lang.String style access #432

jwulf opened this issue Jan 30, 2020 · 1 comment

Comments

@jwulf
Copy link
Contributor

jwulf commented Jan 30, 2020

GraalVM Javascript requires the use of Java.type(typename). It does not support accessing classes just by their fully qualified class name by default. Java.type brings more clarity and avoids the accidental use of Java classes in JavaScript code.

From the Nashorn Migration Guide.

I got ScriptCraft working on GraalVM by requesting the engine as "nashorn", which either returned the old engine, or a GraalVM engine in compatibility mode.

@RepComm
Copy link

RepComm commented Apr 22, 2020

I'm using raw java class access in GraalVM and passing it back up to java for event handling in RepComm/RepCraft without a hitch.
Maybe they've changed how it works in the past months?

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