Stream puzzler

Remi Forax forax at univ-mlv.fr
Mon Jan 14 03:32:20 PST 2013


On 01/14/2013 12:22 PM, Paul Sandoz wrote:
> On Jan 14, 2013, at 12:04 PM, Remi Forax <forax at univ-mlv.fr> wrote:
>
>> On 01/14/2013 11:49 AM, Paul Sandoz wrote:
>>> On Jan 14, 2013, at 9:19 AM, Remi Forax <forax at univ-mlv.fr> wrote:
>>>
>>>> Using the last binary drop (otherwise replace accumulate by collect),
>>>> can you spot the bug (hint, it doesn't compile).
>>>>
>>> It compiles for me using a build from the tip.
>> Do you have named the method containing the code intoList or something else ?
>> or the import static rules have changed ??
>>
> Doh! when i changed the code to use Collectors i forgot to change the name of the static method:
>
>      public static List<Object> toList(Object[] args) {
>          return Arrays.stream(args).collect(toList());
>      }

I wonder if we can do something here. Does someone know why when 
resolving an import static the arity of the method is not used ?

>
> Paul.

RĂ©mi



More information about the lambda-libs-spec-experts mailing list