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 propert

Re: Changes in Java 9

2017-12-15 Thread Sundararajan Athijegannathan
Adding to what Hannes said. In case if you cannot modify existing code, you can also pass options to nashorn engine via System property "nashorn.args" - all nashorn engines created in the process will be initialized with those options. For example: java -Dnashorn.args="-ot=false" Main See

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 op

Re: Changes in Java 9

2017-12-06 Thread Nils Kilden-Pedersen
Hannes, I've sent an email with zip file attachment. Just letting you know in a separate email, in case it ends up being blocked. Nils On Wed, Dec 6, 2017 at 2:19 PM, Hannes Wallnöfer < hannes.wallnoe...@oracle.com> wrote: > That would be https://bugs.openjdk.java.net/ but you need an OpenJDK

Re: Changes in Java 9

2017-12-06 Thread Hannes Wallnöfer
That would be https://bugs.openjdk.java.net/ but you need an OpenJDK account to file a bug. Alternatively, if you can send me something reproduce the bug (could be a small snippet of code) I can file it for you. Hannes > Am 06.12.2017 um 16:15 schrieb Nils Kilden-Pedersen : > > What's the ri

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 source + >Coffee

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. This

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 : > > Ok, the min

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 9.0

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