-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
-
b115
-
generic
-
generic
ScriptObjectListAdapter wraps a ScriptObject as a java List. But, this won't work as expected when such a List is retained by some Java some object and operated upon later. This is because getter/setter on such a List might result in script code being executed - without actually setting correct nashorn global instance in thread local storage. ScriptObjectMirror should be created and then be wrapped as a ListAdapter.