2008-10-23 18:10:23 +01:00
|
|
|
/*
|
2014-06-05 10:44:38 -07:00
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 6548436
|
2008-10-23 18:10:23 +01:00
|
|
|
* @summary Incorrect inconvertible types error
|
|
|
|
* @author Maurizio Cimadamore
|
|
|
|
*
|
2014-06-05 10:44:38 -07:00
|
|
|
* @compile/fail/ref=T6548436d.out -XDrawDiagnostics T6548436d.java
|
2008-10-23 18:10:23 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class T6548436d {
|
|
|
|
|
|
|
|
static class Base<E extends Comparable<E>> {}
|
|
|
|
|
|
|
|
static void test(Base<? extends Double> je) {
|
|
|
|
Object o = (Base<Integer>)je;
|
|
|
|
}
|
2010-03-10 16:23:18 -08:00
|
|
|
}
|