You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Raffaele Borrelli (JIRA)" <ji...@apache.org> on 2011/04/05 15:39:05 UTC

[jira] [Commented] (PIVOT-725) HashMap rehash fires events

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

Raffaele Borrelli commented on PIVOT-725:
-----------------------------------------

Yes I can confirm that the patch fixes the problem. Thanks.

> HashMap rehash fires events
> ---------------------------
>
>                 Key: PIVOT-725
>                 URL: https://issues.apache.org/jira/browse/PIVOT-725
>             Project: Pivot
>          Issue Type: Bug
>          Components: core-collections
>    Affects Versions: 2.0
>            Reporter: Raffaele Borrelli
>             Fix For: 2.0.1
>
>         Attachments: pivot-725.patch
>
>
> The rehash() method of HashMap fires an event when the hashmap is rehashed. This would cause a Listener to be called even if the map is not being modified.
> Quoting Greg "rehash() should probably set a rehash flag and put() should ensure that it is false before firing an event. "

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira