You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Matthias Seidel (JIRA)" <ji...@apache.org> on 2008/06/05 15:35:45 UTC

[jira] Created: (OPENJPA-624) QueryKey hashCode is inconsistent with equals

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.