Missing packages was: graal.js - Java.synchronized

Jaroslav Tulach jaroslav.tulach at oracle.com
Fri Jan 12 07:26:04 UTC 2018


On čtvrtek 11. ledna 2018 21:56:27 CET Adam McMahon wrote:
> One thing I noticed is that Nashorn can import classes using ...
> Packages.* while Graal seems to be missing this.
> 
> Example:
> 
> var System = Packages.java.lang.System;
> 
> Not a deal breaker if graal won't do this, but it would make it easier to
> port Nashorn projects to graal if this feature existed.

Yeah,
I noticed this too as I use the `Packages` construct in
https://github.com/apache/incubator-netbeans-html4j/blob/master/boot-script/
src/main/java/net/java/html/boot/script/ScriptPresenter.java#L73
in Apache HTML/Java API project. Right now the project doesn't run on Graal.js 
which I reported as GR-7055 on Nov 21, 2017.
-jt




More information about the graal-dev mailing list