Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-551

graph.Location's equals(Object) and hashCode() Methods Are Not Consistent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.7
    • 0.6
    • Graph (2.x)
    • None

      Location.hashCode() and Location.equals(Object) need to be consistent. The current implementation of the base class and subclasses prevent logically equal locations (same path or same ID properties) from being used java.util.Map objects.

      It should be true that if one subtype of Location has the same path as a different subtype of Location, and only one of these objects has ID properties, those locations should be equal and should have the same hashCode.

              teiid John Verhaeg (Inactive)
              dflorian@redhat.com Daniel Florian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: