openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Seidel (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-624) QueryKey hashCode is inconsistent with equals
Date Thu, 05 Jun 2008 13:35:45 GMT
QueryKey hashCode is inconsistent with equals
---------------------------------------------

                 Key: OPENJPA-624
                 URL: https://issues.apache.org/jira/browse/OPENJPA-624
             Project: OpenJPA
          Issue Type: Bug
          Components: datacache
    Affects Versions: 1.1.0
            Reporter: Matthias Seidel


The hashCode method of QueryKey is implemented to make use of _candidateClassName, _query
and _params while the equals method also considers _rangeStart, _rangeEnd and some other stuff.
This makes them inconsistent and while this seems to work in a CacheMap it makes it unusable
in some other environment e.g. a custom QueryCache implementation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message