You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/09 20:43:18 UTC
[jira] [Resolved] (COLLECTIONS-380)
UnmodifiableBoundedCollection.unmodifiableBoundedCollection is an infinite
loop
[ https://issues.apache.org/jira/browse/COLLECTIONS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart resolved COLLECTIONS-380.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 4.0
Fixed in r1311366.
Additionally I have added a first unit test and fixed more javadoc issues in the class.
> UnmodifiableBoundedCollection.unmodifiableBoundedCollection is an infinite loop
> -------------------------------------------------------------------------------
>
> Key: COLLECTIONS-380
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-380
> Project: Commons Collections
> Issue Type: Bug
> Components: Collection
> Reporter: Dave Brosius
> Priority: Minor
> Fix For: 4.0
>
>
> This method, just calls itself. As BoundedCollection extends Collection, it would seem to me that this method should be removed:
> /**
> * Factory method to create an unmodifiable bounded collection.
> *
> * @param coll the <code>BoundedCollection</code> to decorate, must not be null
> * @return a new unmodifiable bounded collection
> * @throws IllegalArgumentException if bag is null
> */
> public static <E> BoundedCollection<E> unmodifiableBoundedCollection(BoundedCollection<E> coll) {
> return unmodifiableBoundedCollection(coll);
> }
--
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