Re: jdk.nashorn.api.scripting.ScriptUtils.wrap

2015-11-09 Thread Kockert, Timo
Since attachments are automatically removed, I created a repository on GitHub: https://github.com/hzpz/nashorn-examples >Hi Sundar, > >thanks for the quick reply! > > > >I attached a small Maven project with two tests. Both tests work fine with >JDK8u60. Both will fail with JDK8u31, the metho

Re: jdk.nashorn.api.scripting.ScriptUtils.wrap

2015-11-09 Thread Kockert, Timo
Hi Sundar, thanks for the quick reply! I attached a small Maven project with two tests. Both tests work fine with JDK8u60. Both will fail with JDK8u31, the method selection test will also fail with newer JDKs up to JDK8u51. The behavior demonstrated by the mapping test was the reason we used

Re: jdk.nashorn.api.scripting.ScriptUtils.wrap

2015-11-09 Thread Sundararajan Athijegannathan
The ScriptUtils methods are supposed to be called only from *scripts* - which the javadoc comments makes it very clear. Why do you call it from Java? When calling from script, the particular static type of method parameters should not make any difference. Besides, when crossing Javascript to j