Re: Running Nashorn

2013-08-21 Thread Andrew Thompson
Can't whatever is being done in the static initializer be moved to be done lazily when the AppleScriptEngine is actually used. On Aug 7, 2013, at 10:21 AM, "Jim Laskey (Oracle)" wrote: > I'm filing a bug against AppleScriptEngine.jar. Other than removing it, > there is no long term fix. BT

Re: Running Nashorn

2013-08-21 Thread Andrew Thompson
Can't whatever is being done in the static initializer be moved to be done lazily when the AppleScriptEngine is actually used. On Aug 7, 2013, at 10:21 AM, "Jim Laskey (Oracle)" wrote: > I'm filing a bug against AppleScriptEngine.jar. Other than removing it, > there is no long term fix. BT

Re: Threading Problem with Nashorn

2013-07-14 Thread Andrew Thompson
On Jul 9, 2013, at 6:34 AM, Attila Szegedi wrote: > Actually, in your above example, since the JavaScript program has no explicit > guarding of concurrent access to variable `i` you seem like you would > actually even expect to have an engine that has "THREAD-ISOLATED" as its > threading mode

Re: Are Nashorn/jjs built in objects documented anywhere?

2013-07-01 Thread Andrew Thompson
On Jun 30, 2013, at 11:40 PM, A. Sundararajan wrote: > Nashorn implements ECMAScript 262 Edition 5.1 ( > http://www.ecma-international.org/ecma-262/5.1/ ). Top level "JSON" object > and it's 'parse' and 'stringify' methods are specified in that specification. > > There are a few nashorn spec

Are Nashorn/jjs built in objects documented anywhere?

2013-06-30 Thread Andrew Thompson
First post so apologies if my terminology is off. I started experimenting with jjs today and thought I would have a go at loading some JSON data that's of interest to me. So I started Googling around for the best way to do that. I quickly figured out that within jjs there's a top level object