You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Emanuele Tagliaferri (Jira)" <ji...@apache.org> on 2023/11/07 10:34:00 UTC

[jira] [Created] (TINKERPOP-3012) Wrong hashCode implementation for DetachedVertexPropert

Emanuele Tagliaferri created TINKERPOP-3012:
-----------------------------------------------

             Summary: Wrong hashCode implementation for DetachedVertexPropert
                 Key: TINKERPOP-3012
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3012
             Project: TinkerPop
          Issue Type: Bug
            Reporter: Emanuele Tagliaferri
             Fix For: 3.7.1, 4.0.0
         Attachments: detached_vertex_property_hashcode.patch

Hi,

I was trying to update OrientDB to TinkerPop 3.7.0, and I got some test failing, with some debugging I noticed that the `DetachedVertexProperty`  implement equals for the property, but inherit the hashCode from `DetachedElement` that it does not behave as a property but as an element. It may be there also other `VertextProperty` that do not implement correctly the hashCode.

Adding a simple example patch in attachment.

here is the branch I'm working on for the update https://github.com/orientechnologies/orientdb-gremlin/tree/WIP_update_deps I do have additional tests failing to check



--
This message was sent by Atlassian Jira
(v8.20.10#820010)