Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1545

ScripteEngineManagerFactory is not thread safe

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Scripting Core 2.0.14
    • Scripting Core 2.0.14
    • Scripting
    • None

    Description

      The ScriptEngineManagerFactory class is not thread-safe:

      • Access to the engineSpiBundles, engineSpiServices fields (lists) are not guarded
      • Calls to refreshScriptEngineManager are not guarded

      This may cause improper states under certain circumstances.

      Accesses to these internal fields and methods should properly be guarded.

      In addition, replacement of the List as collection of the SPI bundles and service by Set should be considered.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: