Synchronizing pattern compilation block in PatternMatchNode
-----------------------------------------------------------
Key: CAY-567
URL: http://issues.apache.org/cayenne/browse/CAY-567
Project: Cayenne
Type: Bug
Components: Cayenne Core Library
Versions: 1.2
Reporter: Andrus Adamchik
Assigned to: Andrus Adamchik
Priority: Minor
Fix For: 1.2
Cayenne "like" expression (a subclass of PatternMatchNode) causes an NPE in
multi-threaded situtations. The method that causes it is
"PatternMatchNode.getPattern(..)". While we do not make any special guarantees
as to the thread-safety of the expressions, this case looks like the one we
need to fix. Especially since the fix is trivial.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/cayenne/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira