commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Bishop (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-380) UnmodifiableBoundedCollection.unmodifiableBoundedCollection is an infinite loop
Date Mon, 02 Jan 2012 18:08:30 GMT

    [ 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

        

Mime
View raw message