mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
[java] connect resolution of generics in resource closer method (IDEA-150607)
This commit is contained in:
+6
@@ -20,6 +20,8 @@ class C {
|
||||
}
|
||||
}
|
||||
|
||||
interface GenRT extends Gen<RuntimeException> { }
|
||||
|
||||
void m1() {
|
||||
try (MyResource r = new MyResource()) { r.doSomething(); }
|
||||
catch (E1 | E2 | E3 ignore) { }
|
||||
@@ -87,4 +89,8 @@ class C {
|
||||
void m5() {
|
||||
try (<error descr="Unhandled exception from auto-closeable resource: C.E2">Gen<E2> gen = new Gen.Impl()</error>) { }
|
||||
}
|
||||
|
||||
void m6() {
|
||||
try (GenRT gen = null) { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user