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

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

mercurial