lambda: check unhandled exceptions for method references; disable surround with try/catch accordingly (IDEA-98966)

This commit is contained in:
anna
2013-01-14 16:49:05 +01:00
parent 7d80bca02f
commit 1cc7b6ee11
11 changed files with 184 additions and 4 deletions

View File

@@ -0,0 +1,19 @@
public class ExTest {
public static void maybeThrow(String data) throws Ex {
throw new Ex(data);
}
{
Block<String> b = <error descr="Unhandled exception: ExTest.Ex">ExTest::maybeThrow</error>;
}
private static class Ex extends Throwable {
public Ex(String s) {
}
}
}
interface Block<T> {
public void accept(T t);
}