mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
[java-incomplete-model] Support declared but unresolved exceptions
GitOrigin-RevId: 2e493f1820ce2e676708e191c0ff0b72b4ecaa59
This commit is contained in:
committed by
intellij-monorepo-bot
parent
f570494f4a
commit
15bb3eb9f4
@@ -142,6 +142,21 @@ public class Simple {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void testThrow2() {
|
||||
try {
|
||||
declaredUnknownException();
|
||||
}
|
||||
catch (<info descr="Not resolved until the project is fully loaded">Cls</info> x) {}
|
||||
}
|
||||
|
||||
void testThrow3() {
|
||||
// We don't know whether Cls is checked or not
|
||||
declaredUnknownException();
|
||||
}
|
||||
|
||||
void declaredUnknownException() throws <info descr="Not resolved until the project is fully loaded">Cls</info> {}
|
||||
|
||||
void testConcat(<info descr="Not resolved until the project is fully loaded">Cls</info> cls) {
|
||||
System.out.println("hello " + cls.<info descr="Not resolved until the project is fully loaded">getSomething</info>() + "!!!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user