Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/exceptionHighlighting/IgnoreExceptionThrownInAnonymous.java
Anna.Kozlova 0acc44b025 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
2018-09-18 18:54:06 +02:00

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) {
}
}
}