You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Lucas Galfaso (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2011/11/06 15:32:51 UTC

[jira] [Issue Comment Edited] (FELIX-3203) EventListenerHooks are able to make modifications to ShrinkableMap

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

Lucas Galfaso edited comment on FELIX-3203 at 11/6/11 2:31 PM:
---------------------------------------------------------------

Proposed patch.

Note: Was unable to create a patch that does not create as many inner classes.
                
      was (Author: lgalfaso):
    Proposed patch.

Note: Was unable to create a patch that does not create these much inner classes.
                  
> EventListenerHooks are able to make modifications to ShrinkableMap
> ------------------------------------------------------------------
>
>                 Key: FELIX-3203
>                 URL: https://issues.apache.org/jira/browse/FELIX-3203
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.0
>            Reporter: Lucas Galfaso
>         Attachments: FELIX-3203.diff
>
>
> EventListenerHooks are able to make modifications to ShrinkableMap by calling Entry::setValue on the entry set. This is
> listeners.entrySet().iterator().next().setValue(XXX)
> Even when the specification does not state that this should not be possible, it looks like it is an unintended side-effect.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira