mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
diamonds: copy throws list to static constructors to ensure correct unhandled exceptions, etc
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import java.io.IOException;
|
||||
|
||||
class MyTest<T> {
|
||||
public MyTest() throws IOException {}
|
||||
|
||||
void m() {
|
||||
MyTest<String> test = <error descr="Unhandled exception: java.io.IOException">new MyTest<>()</error>;
|
||||
}
|
||||
|
||||
{
|
||||
MyTest<String> test = new MyTest<>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user