Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting Core 2.0.14
-
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.