mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
unhandled exceptions when resolved to the first of multiple interfaces inherited (IDEA-109216)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import java.io.*;
|
||||
|
||||
interface ThrowsCloneNotSupportedException {
|
||||
void f() throws CloneNotSupportedException;
|
||||
}
|
||||
|
||||
interface ThrowsIOException {
|
||||
void f() throws IOException;
|
||||
}
|
||||
|
||||
abstract class ThrowsNothing implements ThrowsCloneNotSupportedException, ThrowsIOException {
|
||||
private void foo() {
|
||||
f();
|
||||
}
|
||||
}
|
||||
|
||||
class Main {
|
||||
public static void main(String[] args) {
|
||||
ThrowsNothing throwsNothing = null;
|
||||
throwsNothing.f();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user