graal.js - Java.synchronized

Adam McMahon adam at cs.miami.edu
Fri Jan 12 02:56:27 UTC 2018


Andreas,

As I notice features that Nashorn has  that would be nice to have I will
send then your way.  I think for graal.js to take off, Nashorn compatility
will be important.

One thing I noticed is that Nashorn can import classes using the java.* and
Packages.* while Graal seems to be missing this.

Example:

var System = java.lang.System;
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.

Best,

-Adam

On Wed, Jan 10, 2018 at 7:00 AM, Andreas Woess <andreas.woess at oracle.com>
wrote:

> Hi Adam,
>
> we currently don't have this extension available, but it should be
> straightforward to implement it. We can include it in the next release.
> Let us know if you're missing any other features.
>
> - andreas
>
>
> On 10.01.18 04:37, Adam McMahon wrote:
>
>> Hi,
>>
>> Nashorn has an extension for returning a synchronized function:
>> Java.synchronized
>>
>> Is there something similar in graal.js?
>>
>> Thanks,
>>
>> -Adam
>>
>
>


More information about the graal-dev mailing list