Hi Marc, hi Paul,
the idea was to let the method be reuseable. But I have to say, that I
can't point to any usecase for this now.
Let's use List, Set and SortedSet. What about arrays? Bill didn't
answered yet.
Stephan
>>>> Dups doesn't matter. It's generally not defined for a Collection
>>>> (see javadoc of Collection).
>>> I know, that is the problem :-) what if one runtime chooses to use
>>> HashSet as the underlying implementation for Collection and another
>>> chooses to use ArrayList?
>> I think that this is not a problem in general; the app should ready
>> to handle this.
>>> If we allow Collection we have to specify the policy on dups
>>> otherwise it can cause interop issues where information is present
>>> when using one runtime but potentially not when using another the
>>> other.
>> Ok, we could specify it. Than I propose to specify, that a List is
>> injected.
>>
> Given that we need to specify this I don't see much point supporting
> Collection. List is a Collection so you can use it anywhere you can
> use a Collection. I think the contract wrt order and duplicates is
> clearer if we just support List, Set and SortedSet.