mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test to ensure that capture's bound is corrected according to the used jdk/library
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package p;
|
||||
abstract class B {
|
||||
void foo(A<?> a)
|
||||
{
|
||||
a.get().<error descr="Cannot resolve method 'reversed()'">reversed</error>();
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package p;
|
||||
public abstract class A <T extends java.util.Comparator> {
|
||||
public abstract T get();
|
||||
}
|
||||
@@ -124,6 +124,11 @@ public class MultipleJdksHighlightingTest extends UsefulTestCase {
|
||||
doTestWithoutLibrary();
|
||||
}
|
||||
|
||||
public void testWrongComparatorInUpperBound() throws Exception {
|
||||
addDependencies_37_78();
|
||||
doTestWithoutLibrary();
|
||||
}
|
||||
|
||||
public void testGenericComparator() throws Exception {
|
||||
addDependencies_37_78();
|
||||
doTestWithoutLibrary();
|
||||
|
||||
Reference in New Issue
Block a user