commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Shi (JIRA)" <>
Subject [jira] Created: (COLLECTIONS-346) SetUniqueList.decorate throws exceptions that is not documented
Date Tue, 24 Nov 2009 23:19:39 GMT
SetUniqueList.decorate throws exceptions that is not documented

                 Key: COLLECTIONS-346
             Project: Commons Collections
          Issue Type: Bug
          Components: List
    Affects Versions: 3.2
            Reporter: Jimmy Shi

public static void main(String[] args) {
        List<String> testList=Arrays.asList("a","b","c","a","b","c","e");
        SetUniqueList decoratedList = SetUniqueList.decorate(testList);
throws below exception:
Exception in thread "main" java.lang.UnsupportedOperationException
	at java.util.AbstractList.remove(
	at java.util.AbstractList$Itr.remove(
	at java.util.AbstractList.removeRange(
	at java.util.AbstractList.clear(
	at org.apache.commons.collections.list.SetUniqueList.decorate(

caused by the list to decorate is unmodifiable.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message