Sebb created SCXML-290:
--------------------------
Summary: JSEvaluator: private static String initGlobalsScript is
not thread-safe
Key: SCXML-290
URL: https://issues.apache.org/jira/browse/SCXML-290
Project: Commons SCXML
Issue Type: Bug
Reporter: Sebb
JSEvaluator has a mutable static field initGlobalsScript:
https://github.com/apache/commons-scxml/blob/050fa90143272195773e2d699531f759ce3b6f66/src/main/java/org/apache/commons/scxml2/env/javascript/JSEvaluator.java#L86
It is written under synchronisation, but it is read without synch, so may see a
stale value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)