Files
openide/java/java-tests/testData/codeInsight/completion/normal/UnhandledCheckedExceptionsWithParents_after.java
Mikhail Pyltsin 55c9701fc8 [java-completion] IJ-CR-129761 IDEA-349764 Suggest a full catch section
- catch sections are added automatically

GitOrigin-RevId: 75aed0b2281ffa0e412b1eaecf90caf406ba0182
2024-04-03 20:02:54 +00:00

22 lines
459 B
Java

class X{
class CheckedException extends Exception {
}
class CheckedException1 extends CheckedException {
}
class CheckedException2 extends CheckedException {
}
public void test() {
try {
method1();
throw new CheckedException2();
} catch(CheckedException e) {
} catch (Exception e) {
<selection>throw new RuntimeException(e);</selection><caret>
}
}
private void method1() throws CheckedException1{
}
}