atom feed8 messages in net.java.dev.jsr235.issues[Issue 15] Clarification on Equality...
FromSent OnAttachments
radupFeb 12, 2008 3:00 pm 
radupFeb 12, 2008 3:03 pm 
kgoodsonMar 16, 2008 10:28 pm 
radupMar 18, 2008 5:39 pm 
kgoodsonMar 20, 2008 10:42 am 
blaise_doughanApr 8, 2008 8:15 am 
radupApr 8, 2008 10:16 am 
radupApr 23, 2008 6:34 pm 
Subject:[Issue 15] Clarification on EqualityHelper and property order
From:radup (rad@dev.java.net)
Date:Apr 8, 2008 10:16:17 am
List:net.java.dev.jsr235.issues

https://jsr235.dev.java.net/issues/show_bug.cgi?id=15

------- Additional comments from rad@dev.java.net Tue Apr 8 17:16:39 +0000
2008 ------- I think the answer in the general case is "yes", DataObjects can still be equal even if their XML representation is not exactly the same. So, for open content properties, order does not matter unless the containing type is sequenced.

To translate the reference to "OSOA issue SDO-280", this means changing the JavaDoc for EqualityHelper.equalsShallow() from:

If the type is a sequenced type, the sequence entries must be the same. For each entry index in the sequence where the property is used in the comparison, dataObject1.getSequence().getValue(index).equals( dataObject2.getSequence().getValue(index)) and dataObject1.getSequence().getProperty(index) == dataObject2.getSequence().getProperty(index) must be true.

to further say that the algorithm compares only entries with dataType=true and text entries. Entries with dataType=false are skipped.