Stream puzzler (original) (raw)

Paul Sandoz paul.sandoz at oracle.com
Mon Jan 14 03:22:00 PST 2013


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());
}

Paul.



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