felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lucas Galfaso (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3203) EventListenerHooks are able to make modifications to ShrinkableMap
Date Sun, 06 Nov 2011 14:32:51 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lucas Galfaso updated FELIX-3203:
---------------------------------

    Attachment: FELIX-3203.diff

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

        

Mime
View raw message