mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
exceptions collection: don't visit anonymous class body (IDEA-198967)
simple visit of expression list doesn't work as walking visitor starts to go down when it starts an element and element has no children
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
class MyTest {
|
||||
public static void main() {
|
||||
try {
|
||||
new Callable() {
|
||||
@Override
|
||||
public Object call() throws IOException {
|
||||
throw new IOException();
|
||||
}
|
||||
};
|
||||
|
||||
new Foo("") {
|
||||
@Override
|
||||
public Object call() throws IOException {
|
||||
throw new IOException();
|
||||
}
|
||||
};
|
||||
}
|
||||
catch (Exception e) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
static abstract class Foo implements Callable {
|
||||
protected Foo(Object o) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user