Re: Changes in Java 9

2017-12-15 Thread Nils Kilden-Pedersen
Excellent, that appears to work. Thanks both! On Fri, Dec 15, 2017 at 7:19 AM, Sundararajan Athijegannathan < sundararajan.athijegannat...@oracle.com> wrote: > Adding to what Hannes said. In case if you cannot modify existing code, > you can also pass options to nashorn engine via System

Re: Changes in Java 9

2017-12-15 Thread Hannes Wallnöfer
Hi Nils, Thanks for the code. Unfortunately you hit a bug in optimistic types, which is enabled by default in JDK 9. I’ve filed an issue for it and have a fix for it. https://bugs.openjdk.java.net/browse/JDK-8193508 The good news is that it is quite easy to work around this bug by disabling

Re: Changes in Java 9

2017-12-06 Thread Nils Kilden-Pedersen
What's the right place to file a bug? On Mon, Dec 4, 2017 at 9:56 AM, Nils Kilden-Pedersen wrote: > Thanks for bringing this up. It made me realize that my post was > incomplete. > > These are the steps I take: > >1. Initial step: Call engine.compile with the CS compiler

Re: Changes in Java 9

2017-12-04 Thread Nils Kilden-Pedersen
Thanks for bringing this up. It made me realize that my post was incomplete. These are the steps I take: 1. Initial step: Call engine.compile with the CS compiler source + CoffeeScript.compile(coffeeCode, {runtime: 'none'}); which returns CompiledScript that is retained and re-used.

Re: Changes in Java 9

2017-12-04 Thread Hannes Wallnöfer
Hi Nils, Are you just evaluating the script files you linked in your first message, or trying to do some further processing? Using the jjs tool from JDK 9.0.1 I see no errors running both versions of CoffeeScript. Hannes > Am 03.12.2017 um 21:08 schrieb Nils Kilden-Pedersen

Re: Changes in Java 9

2017-12-03 Thread Nils Kilden-Pedersen
Ok, the minified vs non-minified may not be identical. I cannot find the default parameters in the minified version, so perhaps those are removed. What does remain however, is that I can compile minified cs2 on JDK 8_144, but not on

Re: Changes in Java 9

2017-12-03 Thread Nils Kilden-Pedersen
Further testing with the un-minified code (cs2 , cs1 ) reveals the true problems in JDK 9.0.1 In cs2, it’s ES6 syntax (default args), which (unexpectedly for me at

Changes in Java 9

2017-12-03 Thread Nils Kilden-Pedersen
I just switched to the Java 9.0.1 runtime, and Nashorn now fails to parse the Coffeescript compiler, which worked fine in Java 8_144. Coffeescript 2 compiler: http://coffeescript.org/v2/browser-compiler/coffeescript.js v1 also fails: http://coffeescript.org/v1/browser-compiler/coffee-script.js