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

Tue, 13 Sep 2011 14:14:57 +0100

author
mcimadamore
date
Tue, 13 Sep 2011 14:14:57 +0100
changeset 1085
ed338593b0b6
parent 384
ed31953ca025
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7086595: Error message bug: name of initializer is 'null'
Summary: Implementation of MethodSymbol.location() should take into account static/instance initializers
Reviewed-by: jjg

     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=T6182950a.out -XDrawDiagnostics T6182950a.java
     7  */
     8 import java.util.List;
    10 class T6182950a {
    11     int m(List<String> l) {return 0;}
    12     double m(List<Integer> l) {return 0;}
    13 }

mercurial