ScripteEngineManagerFactory is not thread safe
----------------------------------------------

                 Key: SLING-1545
                 URL: https://issues.apache.org/jira/browse/SLING-1545
             Project: Sling
          Issue Type: Improvement
          Components: Scripting
    Affects Versions: Scripting Core 2.0.12
            Reporter: Felix Meschberger
             Fix For: Scripting Core 2.0.12


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to