mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
do not replace checked exception with unchecked (IDEA-119345)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
class SQLException extends java.lang.Exception{}
|
||||
|
||||
interface ICompileErrorTest {
|
||||
void foo() throws IllegalStateException, Exception;
|
||||
}
|
||||
|
||||
abstract class CompileErrorTest implements ICompileErrorTest {
|
||||
public void foo() throws Exception {
|
||||
throw new SQLException();
|
||||
}
|
||||
}
|
||||
|
||||
public class CompileErrorTestExtended extends CompileErrorTest {
|
||||
public void foo() throws Exception {
|
||||
try {
|
||||
super.foo();
|
||||
} catch (SQLException ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user