ObjectIdentifier is only guaranteed unique as long as the underlying object exists – when the instance gets deallocated, its object identifier may be reused for a different object. (Internally, objects are identified by their memory location.)
This works as intended, although the documentation ought to describe this fact.
Attachment: Download
Additional Detail from JIRA
md5: b66954dda298d0c551eb157c90071d53
Issue Description:
we expected it is false
Reason:
The first IntegerRef will be free after ObjectIdentifier.init, so the second will use the same heap memory.
The text was updated successfully, but these errors were encountered: