Thu, 10 Oct 2013 14:58:04 +0200
8001931: The new build system whitespace cleanup
Reviewed-by: tbell, simonis, erikj
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 8024207 |
aoqi@0 | 4 | * @summary javac crash in Flow$AssignAnalyzer.visitIdent |
aoqi@0 | 5 | * @compile/fail/ref=FlowCrashTest.out -XDrawDiagnostics FlowCrashTest.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | import java.util.*; |
aoqi@0 | 9 | import java.util.stream.*; |
aoqi@0 | 10 | |
aoqi@0 | 11 | public class FlowCrashTest { |
aoqi@0 | 12 | static class ViewId { } |
aoqi@0 | 13 | |
aoqi@0 | 14 | public void crash() { |
aoqi@0 | 15 | |
aoqi@0 | 16 | Map<ViewId,String> viewToProfile = null; |
aoqi@0 | 17 | new TreeMap<>(viewToProfile.entrySet().stream() |
aoqi@0 | 18 | .collect(Collectors.toMap((vid, prn) -> prn, |
aoqi@0 | 19 | (vid, prn) -> Arrays.asList(vid), |
aoqi@0 | 20 | (a, b) -> { a.addAll(b); return a; }))); |
aoqi@0 | 21 | |
aoqi@0 | 22 | } |
aoqi@0 | 23 | } |