(Just seeing your comment now)
I consider this as a bug, since the specification does not determine the semantics for Set properties.
The JavaDoc of Node#getKey() states:
Returns: the key the node is placed in if contained in a Map, null otherwise
The proposed behavior would not be inline with this, hence my suggestion to let users opt-in through some option.
|