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/01 14:53:05 UTC

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

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


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

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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown resolved PIVOT-725.
------------------------------

    Resolution: Fixed

> 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

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

Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIVOT-725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown updated PIVOT-725:
-----------------------------

    Attachment: pivot-725.patch

Please confirm that the attached patch resolves the issue. 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

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

Posted by "Raffaele Borrelli (JIRA)" <ji...@apache.org>.
    [ 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