Make DynamicLinker specific to a Context in Nashorn

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b93
    • generic
    • generic

      Currently, DynamicLinker is a static singleton in Nashorn. It should be specific to a Context instead.

      A DynamicLinker instance can incorporate exported linkers from other language runtimes, discovered through ServiceLoader mechanism on a class loader. Context has such a class loader, its appLoader. Therefore, DynamicLinker should be local to a Context and constructed through a factory that uses the Context's appLoader for discovery of exported linkers.

      This will allow Nashorn to coöperate with other language runtimes present in the appLoader's classpath

            Assignee:
            Attila Szegedi
            Reporter:
            Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: