invokeMethod throws NoSuchMethodException when script object is from different script context

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: 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.

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: