mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
lambda: do not warn about unhandled exceptions from lambda on call site
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import java.io.IOException;
|
||||
|
||||
interface Callable<V> {
|
||||
V call() throws Exception;
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
static <V> void m(Callable<V> c){}
|
||||
{
|
||||
m(() -> {throw new IOException();});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user