mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 18:20:52 +07:00
13 lines
301 B
Java
13 lines
301 B
Java
// "Add exception to method signature" "true-preview"
|
|
class C {
|
|
static class E1 extends Exception { }
|
|
|
|
static class MyResource implements AutoCloseable {
|
|
public void close() throws E1 { }
|
|
}
|
|
|
|
void m() throws E1 {
|
|
try (MyResource r = new MyResource()) {
|
|
}
|
|
}
|
|
} |