You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Bishop (Commented) (JIRA)" <ji...@apache.org> on 2012/01/02 19:08:30 UTC

[jira] [Commented] (COLLECTIONS-380) UnmodifiableBoundedCollection.unmodifiableBoundedCollection is an infinite loop

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

Matt Bishop commented on COLLECTIONS-380:
-----------------------------------------

This should be a higher severity. APIs shouldn't lock up like this.
                
> 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
>
> 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