commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COLLECTIONS-514) NullPointerException in MapBackedSet.mapBackedSet
Date Fri, 27 Nov 2015 21:48:12 GMT

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

Thomas Neidhart closed COLLECTIONS-514.
---------------------------------------

> NullPointerException in MapBackedSet.mapBackedSet
> -------------------------------------------------
>
>                 Key: COLLECTIONS-514
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-514
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Bag, Collection, Set
>    Affects Versions: 4.0
>         Environment: MacOS 10.9, Java 6
>            Reporter: Cyrille Artho
>         Attachments: Report2.java
>
>
> It seems that addAll has issues with adding a set that is backed by a singleton map with
entry null -> null. However, the javadoc of the involved classes does not state that null
entries are disallowed.
> Either the code should allow adding a null entry to a bag, or the documentation should
state that null entries are not allowed.
> See the attached unit test in JUnit format to reproduce the problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message