Community
Participate
Working Groups
Created attachment 256654 [details] Example source If I use Stream.map() with a multi-line block that returns with a ternary, then use collect(Collectors.joining()), I get the following compilation error: The method collect(Collector<? super Object,A,R>) in the type Stream<Object> is not applicable for the arguments (Collector<CharSequence,capture#1-of ?,String>) If I eliminate the ternary or use the single-line lambda shortcut syntax, there is no problem. I get no compilation errors when compiling with javac.
Works fine on master, possible duplicate of bug 463728. Please try with a more recent 4.6 version and reopen if the issue still occurs. *** This bug has been marked as a duplicate of bug 463728 ***
Verified for 4.6 M4 with build I20151207-2000.