Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027150

ScriptObjectListAdapter won't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs
    • None
    • b115
    • generic
    • generic

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: