Project

Profile

Help

Bug #3969

closed

XdmMap - consistency of get(), containsKey(), put(), remove()

Added by Michael Kay over 5 years ago. Updated about 5 years ago.

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

100%

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

Description

On XdmMap, the get() method accepts the key as an Object and attempts to convert this to XdmAtomicValue.

The containsKey() method is defined to accept Object but simply casts it to XdmAtomicValue.

The put() and remove() methods require the key to be supplied as an XdmAtomicValue.

The same inconsistent pattern is followed on .NET.

Please register to edit this issue

Also available in: Atom PDF