[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: NEW ISSUE: equals() method on ServiceReference and CallableReference
RAISER: Mark Combellack The equals() and hashCode() methods are some of the fundamental Java Object
methods that are used for comparing objects. The SCA Java specifications do not
describe what should happen when the equals() or hashCode() methods are called on
a ServiceReference or CallableReference. Without an explicit statement, SCA developers will not know whether
they can compare ServiceReferences and CallableReferences. I’ve sent an email to the SCA-Java list (see link below) that contains
an example usage scenario. http://lists.oasis-open.org/archives/sca-j/200805/msg00037.html
Update the specification to state that the equals()
method for CallableReference can be used to test whether they refer to the same
target. Update the specification to state that the hashCode()
method for ServiceReference and CallableReference must comply with the hashCode()
contract as defined by Java - see http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()
Mark Combellack| Software Developer| Avaya | |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]