You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2024/10/20 12:00:00 UTC

[jira] [Commented] (COLLECTIONS-851) Document AbstractHashedMap does not compensate for key collisions

    [ https://issues.apache.org/jira/browse/COLLECTIONS-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17891249#comment-17891249 ] 

Gary D. Gregory commented on COLLECTIONS-851:
---------------------------------------------

This one needs a PR ;)

> Document AbstractHashedMap does not compensate for key collisions
> -----------------------------------------------------------------
>
>                 Key: COLLECTIONS-851
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-851
>             Project: Commons Collections
>          Issue Type: Wish
>          Components: Map
>            Reporter: Arnout Engelen
>            Priority: Major
>
> The various AbstractHashedMap implementations do not compensate for scenario's where many values map to the same hash bucket.
> This means these collections are not suitable for situations where untrusted users can add values for arbitrary keys, as they could cause disproportionate resource usage.
> This is not necessarily a problem, but it would be good to document this in the API docs.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)