Wed, 27 Apr 2016 01:34:52 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/
changeset: 2573:53ca196be1ae
tag: jdk8u25-b17
aoqi@0 | 1 | /** |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 7086601 |
aoqi@0 | 4 | * @summary Error message bug: cause for method mismatch is 'null' |
aoqi@0 | 5 | * @compile/fail/ref=T7086601a.out -XDrawDiagnostics T7086601a.java |
aoqi@0 | 6 | */ |
aoqi@0 | 7 | |
aoqi@0 | 8 | class T7086601 { |
aoqi@0 | 9 | static <S> void m1(Iterable<? super S> s1, Iterable<? super S> s2) { } |
aoqi@0 | 10 | static void m1(Object o) {} |
aoqi@0 | 11 | |
aoqi@0 | 12 | static <S> void m2(Iterable<? super S> s1, Iterable<? super S> s2, Iterable<? super S> s3) { } |
aoqi@0 | 13 | static void m2(Object o) {} |
aoqi@0 | 14 | |
aoqi@0 | 15 | @SafeVarargs |
aoqi@0 | 16 | static <S> void m3(Iterable<? super S>... ss) { } |
aoqi@0 | 17 | static void m3(Object o) {} |
aoqi@0 | 18 | |
aoqi@0 | 19 | static void test1(Iterable<String> is, Iterable<Integer> ii) { |
aoqi@0 | 20 | m1(is, ii); |
aoqi@0 | 21 | } |
aoqi@0 | 22 | |
aoqi@0 | 23 | static void test2(Iterable<String> is, Iterable<Integer> ii, Iterable<Double> id) { |
aoqi@0 | 24 | m2(is, ii, id); |
aoqi@0 | 25 | } |
aoqi@0 | 26 | |
aoqi@0 | 27 | static void test3(Iterable<String> is, Iterable<Integer> ii) { |
aoqi@0 | 28 | m3(is, ii); |
aoqi@0 | 29 | } |
aoqi@0 | 30 | |
aoqi@0 | 31 | static void test4(Iterable<String> is, Iterable<Integer> ii, Iterable<Double> id) { |
aoqi@0 | 32 | m3(is, ii, id); |
aoqi@0 | 33 | } |
aoqi@0 | 34 | } |