moved java resolve tests to community

This commit is contained in:
Alexey Kudravtsev
2011-02-08 13:00:23 +03:00
parent e2ca615b10
commit be9220e9d0
198 changed files with 3836 additions and 0 deletions
@@ -0,0 +1,23 @@
import java.util.Collection;
public class SomeClass {
public static Object find(Collection collection, Object criteria) {
return criteria;
}
static class SomeSubClass extends SomeClass {
public static <T> T find(Collection<T> collection, Object criteria) {
return null;
}
}
<T>void f()
{
Collection<T> c = null;
Object criteria = null;
// IntelliJ finds the find(Collection, Object) method, and reports a non-existent compile error.
T someInstance = SomeSubClass.<ref>find(c, criteria);
}
}