test/tools/javac/generics/typevars/6968793/T6968793.java

Mon, 07 Feb 2011 18:10:13 +0000

author
mcimadamore
date
Mon, 07 Feb 2011 18:10:13 +0000
changeset 858
96d4226bdd60
parent 0
959103a6100f
permissions
-rw-r--r--

7007615: java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
Summary: override clash algorithm is not implemented correctly
Reviewed-by: jjg

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug     6968793
     4  * @summary javac generates spourious diagnostics for ill-formed type-variable bounds
     5  * @author  mcimadamore
     6  * @compile/fail/ref=T6968793.out -XDrawDiagnostics T6968793.java
     7  */
     9 class T6968793<X extends Number, Y extends X, Z extends Object & Comparable<Y>> {
    10     T6968793<Object, Object, Object> o;
    11 }

mercurial