Re: RFR: 8162839: JavaAdapters do not work with ScriptObjectMirror objects

2016-11-18 Thread Sundararajan Athijegannathan
+1 On 11/17/2016 9:20 PM, Hannes Wallnöfer wrote: > Thanks for the reviews. > > I already pushed the change, but I think the demand for a test that runs > under SecurityManager makes sense, given that the change contains privileged > code to access the ScriptObjectMirror fields. > > I field a n

Converting POJOs to ScriptObjects?

2016-11-18 Thread Tony Zakula
Hey All, Seems there should be a way to do this that maybe I am missing? To pass JS objects to Java, we use: var data = {"myVar":"hello"}; Java.asJSONCompatible(data); We also want to pass a POJO created on the Java side back to JS and convert it to a ScriptObject so it acts like a standard JS

Nashorn JSObject with JDK 9

2016-11-18 Thread Florian Beese
Hi together, I got a question relating the usage of JSObject Interface and AbstractJSObject class with JDK 9. I hope you can tell me where to look or whom to talk to. My problem is, that when I want to access ScriptRuntime.UNDEFINED to be abled to return "undefined" for members of my object, that