Affects Version/s: 2.2.7
Fix Version/s: None
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.