test/tools/javac/generics/6985719/T6985719b.java

Sat, 07 Nov 2020 10:30:02 +0800

author
aoqi
date
Sat, 07 Nov 2020 10:30:02 +0800
changeset 3938
93012e2a5d1d
parent 0
959103a6100f
permissions
-rw-r--r--

Added tag mips-jdk8u275-b01 for changeset eb6ee6a5f2fe

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug     6985719
     4  * @summary Alike methods in interfaces (Inheritance and Overriding)
     5  * @author  mcimadamore
     6  * @compile/fail/ref=T6985719b.out -XDrawDiagnostics T6985719b.java
     7  */
     9 import java.util.List;
    11 class T6985719b {
    12     abstract class A { abstract void f(List<String> ls); }
    13     interface B { void f(List<Integer> ls); }
    14     abstract class C extends A implements B {}
    15 }

mercurial