Project

Profile

Help

Bug #2994

closed

XdmAtomicValue does not have a usable equals() method.

Added by Michael Kay over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
s9api API
Sprint/Milestone:
-
Start date:
2016-10-12
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:
Platforms:

Description

We allow conversion of an XDM map to a Java Map<XdmAtomicValue, XdmValue> using the method XdmItem.asMap().

However the resulting map is not useful because XdmAtomicValue lacks a usable equals() method; it simply inherits Object.equals(), whereby (new XdmAtomicValue(1).equals(new XdmAtomicValue(1)) returns false.

Please register to edit this issue

Also available in: Atom PDF