mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
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
31 lines
568 B
Java
31 lines
568 B
Java
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) {
|
|
}
|
|
}
|
|
}
|