1/*
2 * @test /nodynamiccopyright/
3 * @bug 8167000
4 * @summary Refine handling of multiple maximally specific abstract methods
5 * @compile/fail/ref=T8167000.out -XDrawDiagnostics -Werror -Xlint:unchecked T8167000.java
6 */
7
8import java.util.*;
9
10class T8167000 {
11
12    interface J {
13        List<Number> getAll(String str);
14    }
15
16    interface K {
17        Collection<Integer> getAll(String str);
18    }
19
20    interface L {
21        List getAll(String str);
22    }
23
24    interface M {
25        Collection getAll(String str);
26    }
27
28
29    static abstract class E implements J, K, L, M {
30        void test() {
31            List<String> l = getAll(""); //check that we get an unchecked warning here
32        }
33    }
34}
35