test to ensure that capture's bound is corrected according to the used jdk/library

This commit is contained in:
Anna Kozlova
2015-12-02 15:42:02 +01:00
parent 8a1085dac4
commit 2f82450d13
3 changed files with 16 additions and 0 deletions
@@ -0,0 +1,7 @@
package p;
abstract class B {
void foo(A<?> a)
{
a.get().<error descr="Cannot resolve method 'reversed()'">reversed</error>();
}
}
@@ -0,0 +1,4 @@
package p;
public abstract class A <T extends java.util.Comparator> {
public abstract T get();
}