test/tools/javac/generics/typevars/6804733/T6804733.java

Thu, 27 Aug 2009 11:08:27 -0700

author
jjg
date
Thu, 27 Aug 2009 11:08:27 -0700
changeset 384
ed31953ca025
parent 236
84a18d7da478
child 2525
2eb010b6cb22
permissions
-rw-r--r--

6875336: some tests should use /nodynamiccopyright/
Reviewed-by: darcy

mcimadamore@236 1 /*
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@236 3 * @bug 6804733
mcimadamore@236 4 * @summary javac generates spourious diagnostics for ill-formed type-variable bounds
mcimadamore@236 5 * @author mcimadamore
mcimadamore@236 6 * @compile/fail/ref=T6804733.out -XDrawDiagnostics T6804733.java
mcimadamore@236 7 */
mcimadamore@236 8
mcimadamore@236 9 import java.util.ArrayList;
mcimadamore@236 10 class T6804733<S> extends ArrayList<S> {
mcimadamore@236 11 <T extends S & S> void m() {}
mcimadamore@236 12 }

mercurial