Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Fix for Bug#221880 (SDO: Require hashCode and equals methods on SDOProperty)

All,

Please review the fix for the following bug and provide any feedback you may have:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=221880
Bug summary:
Since there are maps in SDO code that are keyed on SDOPropery, it is required that this class has a hashCode and equals method to avoid potential issues. For example, a DataObject could have a list of 'name' properties. When setting one of these properties, we would check the appropriate list to see if there is already an entry for 'name', and if so, add the new 'name' property to the existing list. Because the hashCode/equals methods don't exist, we will never find another 'name' property, and hence create a new list (of size one) for each 'name'. The desired behavior is a single list of 'name' properties.


Oracle

David McCann | Principal Software Engineer | TopLink Product
Oracle Corporation Canada
45 O'Connor Street, Suite 400
Ottawa, Ontario K1P 1A4
Canada
613.288.4636
613.238.2818 (fax)


Back to the top