new inference: check bounds problems for all variables acceptable in current context (IDEA-138407); reject complicated dependencies (see JDK-8039299)

This commit is contained in:
Anna Kozlova
2015-04-02 20:30:39 +02:00
parent 4958470009
commit dfcebe315b
4 changed files with 36 additions and 24 deletions

View File

@@ -0,0 +1,19 @@
class Foo {
{
Bar<Baz> b = method(new Bar<>());
}
static <T> T method(Class<T> t) {
return null;
}
static <T> T method(T t) {
return t;
}
}
class Bar<T extends Enum<T>> {
}
enum Baz {}