Standalone Nashorn bound to specific JVM flavors?

Attila Szegedi szegedia at gmail.com
Mon Nov 23 16:58:30 UTC 2020


It has exactly one dependency on sun.misc.Unsafe - a call to defineAnonymousClass. I’m not aware if that’s available on other JVMs or not, but that might be the only issue I’m aware of. FWIW, Nashorn can be used with --anonymous-classes=false to turn this feature off (it’s a bit of an optimization.) 

As it is, I meant to publish the initial version with javac compiling for Java 15, as I presumed nobody would be interested in using it on earlier Java versions as 14 comes with Nashorn included. I have not released it _just yet_ to Maven central (there’s some permission snags on Sonatype OSS). I’m wondering if there’d be value in compiling with a lower target class version?

Attila.

> On 2020. Nov 23., at 17:32, BURRIS Thomas <Thomas.BURRIS at 3ds.com> wrote:
> 
> Hi Attila (et. al.) - is there a pre-requisite between the "standalone" Nashorn and the origin of the JVM ? For example, would it possible to run the future stand-alone Nashorn and AdoptOpenJDK with OpenJ9 (rather than HotSpot) ?
> 
> 
> Best Regards,
> 
> Thomas BURRIS
> 
> RDF Modeling R&D Software Architecture Director
> 
> 
> 
> 
> 
> Office: +1 78 1810 3718
> Mobile: +1 61 7678 9158
> thomas.burris at 3ds.com<mailto:Thomas.BURRIS at 3ds.com>
> 
> [3DS Logo]
> 
> 3DS.COM/ENOVIA<http://www.3ds.com/ENOVIA>
> 
> 
> DS Americas Corp. | 175 Wyman Street | Waltham, MA 02451 | United States
> 
> 
> 
> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged.
> 
> If you are not one of the named recipients or have received this email in error,
> 
> (i) you should not read, disclose, or copy it,
> 
> (ii) please notify sender of your receipt by reply email and delete this email and all attachments,
> 
> (iii) Dassault Syst?mes does not accept or assume any liability or responsibility for any use of or reliance on this email.
> 
> 
> Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer at 3DS.compliance-privacy at 3ds.com<mailto:3DS.compliance-privacy at 3ds.com>
> 
> 
> For other languages, go to https://www.3ds.com/terms/email-disclaimer



More information about the nashorn-dev mailing list