Use of identity in HashMap and ConcurrentHashmap comparisons

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 27
    • Component/s: core-libs

      The implementation of HashMap.get is stricter than the specification of HashMap.get. The disparity obscures inconsistent behavior in the .equals method of instances used a keys. Other HashMap methods use similarly imprecise implementations, for example `remove'().

            Assignee:
            Roger Riggs
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: