inconsistency in invoking method
Venkat Subramaniam
venkats at agiledeveloper.com
Sun Mar 3 14:53:46 PST 2013
Greetings,
Not sure if this is by intent, but the following inconsistency is confusing and would be great
if can be resolved:
System.out.println(
Arrays.asList(1.0).stream().map(n -> n * 1.0).sum()
); //Works fine, prints 1.0
However,
System.out.println(
Arrays.asList(1.0).stream().map(n -> n).sum()
); //error: cannot find symbol
Thanks
Venkat
More information about the lambda-dev
mailing list