Round 2 feedback

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Feb 12 04:25:37 PST 2013


On 10/02/13 00:34, Michael Nascimento wrote:
> - At least here, even simple transformations such as
> myCollection.parallelStream().map(Functions.string()).collect(Collectors.<String>toList())
> requires the explicit types;
b76 contains the very latest inference changes that went in lambda 
repository; so I would expect most of the inference failures to be gone 
(modulo bugs of course).

This program compiles from me (using b76):

import java.util.*;
import java.util.function.*;
import java.util.stream.*;

class Test {
     void test(Collection<Integer> myCollection) {
myCollection.parallelStream().map(Functions.string()).collect(Collectors.<String>toList());
     }
}

What is the type of your variable called 'myCollection' ? Is it possible 
we are missing something here?

Maurizio



More information about the lambda-dev mailing list