test/tools/javac/generics/6182950/T6182950b.java

Fri, 03 May 2013 09:56:56 -0700

author
jjg
date
Fri, 03 May 2013 09:56:56 -0700
changeset 1721
abd153854f16
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8012728: Normalize @ignore comments on langtools tests
Reviewed-by: vromero, mcimadamore

mcimadamore@252 1 /*
jjg@384 2 * @test /nodynamiccopyright/
mcimadamore@252 3 * @bug 6182950
mcimadamore@252 4 * @summary methods clash algorithm should not depend on return type
mcimadamore@252 5 * @author mcimadamore
mcimadamore@252 6 * @compile/fail/ref=T6182950b.out -XDrawDiagnostics T6182950b.java
mcimadamore@252 7 */
mcimadamore@252 8 import java.util.List;
mcimadamore@252 9
mcimadamore@252 10 class T6182950b {
mcimadamore@252 11 static class A {
mcimadamore@252 12 int m(List<String> l) {return 0;}
mcimadamore@252 13 }
mcimadamore@252 14 static class B extends A {
mcimadamore@252 15 double m(List<Integer> l) {return 0;}
mcimadamore@252 16 }
mcimadamore@252 17 }

mercurial