[
https://issues.apache.org/jira/browse/COLLECTIONS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250051#comment-13250051
]
Hudson commented on COLLECTIONS-380:
------------------------------------
Integrated in commons-collections #17 (See
[https://builds.apache.org/job/commons-collections/17/])
[COLLECTIONS-380] Fixed infinte recursion when creating an unmodifiable
bounded collection, added unit test, fixed additional javadoc, thanks to Dave
Brosius for reporting. (Revision 1311366)
Result = SUCCESS
tn : http://svn.apache.org/viewvc/?view=rev&rev=1311366
Files :
*
/commons/proper/collections/trunk/src/main/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollection.java
*
/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java
> 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