Java: report errors again on qualified reference if the type of the qualifier is unknown (revert of fix for IDEA-240047)

GitOrigin-RevId: 28d8cda938544f81c5b32d931496b6ba707b5c35
This commit is contained in:
Bas Leijdekkers
2025-01-31 23:27:00 +00:00
committed by intellij-monorepo-bot
parent d716a552d4
commit e41f056a6b
15 changed files with 44 additions and 57 deletions
@@ -1,7 +1,7 @@
class Test {
void test() {
var x = <error descr="Cannot resolve method 'unresolved' in 'Test'">unresolved</error>();
System.out.println(x.hashCode());
System.out.println(x.x);
System.out.println(x.<error descr="Cannot resolve method 'hashCode()'">hashCode</error>());
System.out.println(x.<error descr="Cannot resolve symbol 'x'">x</error>);
}
}
@@ -4,7 +4,7 @@ class Test {
}
void test2(<error descr="Cannot resolve symbol 'XXX'">XXX</error> bar) {
System.out.println(bar.hashCode());
System.out.println(bar.<error descr="Cannot resolve method 'hashCode()'">hashCode</error>());
if (<error descr="Inconvertible types; cannot cast 'XXX' to 'java.lang.CharSequence'">bar instanceof CharSequence</error>) {}
}