test/tools/javac/lambda/funcInterfaces/NonSAM2.java

changeset 1811
349160289ba2
parent 1415
01c9d4161882
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/lambda/funcInterfaces/NonSAM2.java	Thu Jun 06 15:32:41 2013 +0100
     1.2 +++ b/test/tools/javac/lambda/funcInterfaces/NonSAM2.java	Thu Jun 06 15:33:40 2013 +0100
     1.3 @@ -13,7 +13,7 @@
     1.4  interface Foo1Bar1 extends Foo1, Bar1 {} //types Bar1 and Foo1 are incompatible; both define getAge(String), but with unrelated return types
     1.5  
     1.6  interface AC extends A, C {} //name clash: getOldest(List<?>) in C and getOldest(List<Number>) in A have the same erasure, yet neither overrides the other
     1.7 -interface ABC extends A, B, C {} //name clash: getOldest(List<?>) in C and getOldest(List<Number>) in A have the same erasure, yet neither overrides the other
     1.8 +interface ABC extends A, B, C {} //ok - raw override
     1.9  interface AD extends A, D {} //name clash: getOldest(List<Integer>) in D and getOldest(List<Number>) in A have the same erasure, yet neither overrides the other
    1.10  
    1.11  interface Foo2<T> { void m(T arg);}

mercurial