]
Anuj Shah commented on DROOLS-1359:
-----------------------------------
Just committed the test case:
Race condition in MVELDialectRuntimeData.getParserConfiguration
---------------------------------------------------------------
Key: DROOLS-1359
URL:
https://issues.jboss.org/browse/DROOLS-1359
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 5.5.0.Final, 6.5.0.Final
Reporter: Anuj Shah
Assignee: Mario Fusco
MVELDialectRuntimeData attempts to hold a lazy loaded ParserConfiguration. The
getParserConfiguration method sets this to a new configuration object and then sets the
imports on the configuration. Between these two steps another thread could retrieve the
stale configuration and use it. This could result in a number of exceptions in
compilation.
A simple fix is to delay assignment of new ParserConfiguration until after the imports
are set.