author | sogoel |
Thu, 05 Jun 2014 10:44:38 -0700 | |
changeset 24796 | f940af3221e2 |
parent 7681 | 1f0819a3341f |
permissions | -rw-r--r-- |
1530 | 1 |
/* |
24796
f940af3221e2
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir
sogoel
parents:
7681
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
f940af3221e2
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir
sogoel
parents:
7681
diff
changeset
|
3 |
* @bug 6548436 |
1530 | 4 |
* @summary Incorrect inconvertible types error |
5 |
* @author Maurizio Cimadamore |
|
6 |
* |
|
24796
f940af3221e2
8044064: Group 1: create .out files for cast and capture negative tests in tools/javac dir
sogoel
parents:
7681
diff
changeset
|
7 |
* @compile/fail/ref=T6548436d.out -XDrawDiagnostics T6548436d.java |
1530 | 8 |
*/ |
9 |
||
10 |
public class T6548436d { |
|
11 |
||
12 |
static class Base<E extends Comparable<E>> {} |
|
13 |
||
14 |
static void test(Base<? extends Double> je) { |
|
15 |
Object o = (Base<Integer>)je; |
|
16 |
} |
|
5213 | 17 |
} |