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

Mon, 02 Sep 2013 22:38:36 +0100

author
vromero
date
Mon, 02 Sep 2013 22:38:36 +0100
changeset 2000
4a6acc42c3a1
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8016177: structural most specific and stuckness
Reviewed-by: jjg, vromero
Contributed-by: maurizio.cimadamore@oracle.com

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

mercurial