test/tools/javac/generics/7015430/T7015430.java

changeset 1896
44e27378f523
parent 895
9286a5d1fae3
child 2525
2eb010b6cb22
equal deleted inserted replaced
1895:37031963493e 1896:44e27378f523
2 * @test /nodynamiccopyright/ 2 * @test /nodynamiccopyright/
3 * @bug 7015430 3 * @bug 7015430
4 * 4 *
5 * @summary Incorrect thrown type determined for unchecked invocations 5 * @summary Incorrect thrown type determined for unchecked invocations
6 * @author Daniel Smith 6 * @author Daniel Smith
7 * @compile/fail/ref=T7015430.out -Xlint:unchecked -XDrawDiagnostics T7015430.java 7 * @compile/fail/ref=T7015430_1.out -source 7 -Xlint:-options,unchecked -XDrawDiagnostics T7015430.java
8 * @compile/fail/ref=T7015430_2.out -Xlint:unchecked -XDrawDiagnostics T7015430.java
8 * 9 *
9 */ 10 */
10 11
11 class T7015430 { 12 class T7015430 {
12 static <E extends Exception> Iterable<E> empty(Iterable<E> arg) throws E { 13 static <E extends Exception> Iterable<E> empty(Iterable<E> arg) throws E {

mercurial