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

invokeMethod throws NoSuchMethodException when script object is from different script context

XMLWordPrintable

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

      Bryan Atsatt:

      I'm nearly certain I found a bug in NashornScriptEngine.invokeImpl():
          self = ScriptObjectMirror.unwrap(self, ctxtGlobal);
      should be:
          self = ScriptObjectMirror.unwrap(self, oldGlobal);
      When I re-build with this fix, my new multi-threaded version of node.jar works correctly. Without it, the unwrap fails when the global is not the context global.

            sundar Sundararajan Athijegannathan
            jlaskey Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: