Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3039

JCAResourceAdapter should implement equals and hashCode

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.7
    • Fix Version/s: None
    • Component/s: jackrabbit-jca
    • Labels:
      None

      Description

      According to the spec, the JCAResourceAdapter class should override the equals and hashCode methods inherited from java.lang.Object.

      I suspect in the case of JackRabbit that this is a very simple implementation since the object has no real state and is a front for a singleton. But the spec requires it and the IronJacamar validation tool indicates an error when run against the rar file.

      From Section 16.4 of the J2EE Connector Architecture Specification Version 1.5:

      Equality based on config properties and class information

      The candidate objects are implementations of ResourceAdapter, ManagedConnectionFactory, ConnectionRequestInfo, java.security.Principal, org.ietf.jgss.GSSCredential, GenericCredential, PasswordCredential, and Record types.

      These objects must override the default equals and hashCode methods, and provide an equality behavior based on the configuration properties and class information. That is, any two objects can be equal only if their configuration properties match and they have the same class implementation.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            brian wallis
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development