[JIRA] Created: (CAY-567) Synchronizing pattern compilation block in PatternMatchNode

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Tue Jun 13 2006 - 11:57:48 EDT

  • Next message: Andrus Adamchik: "Re: Cayenne June report needs to be filled in"

    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
    



    This archive was generated by hypermail 2.0.0 : Tue Jun 13 2006 - 11:59:02 EDT