Java: Don't show warnings at reflection access to members of the class if a subclass could be passed at that place (IDEA-177983, IDEA-173505)

This commit is contained in:
Pavel Dolgov
2017-08-28 14:43:10 +03:00
parent ecf65d0924
commit 032fd07e23
12 changed files with 208 additions and 130 deletions
@@ -53,7 +53,7 @@ class Vararg {
myB1 = B.class;
}
void foo1() {
void foo1() throws Exception {
ourA.getMethod("bar", myB1);
ourA.getMethod(<warning descr="Cannot resolve method 'bar' with specified argument types">"bar"</warning>, myB1, String.class);
}