ScriptObjectListAdapter won't work as expected

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • 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.

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: