mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
switch tests on new inference
(cherry picked from commit d2cbf3f2833104c3a0381059b0d6ef8ac0b3c94c)
This commit is contained in:
@@ -12,18 +12,18 @@ class Test {
|
||||
<K extends ClassNotFoundException> void foo2(F<K> f) throws K { }
|
||||
|
||||
{
|
||||
<error descr="Inferred type 'java.lang.RuntimeException' for type parameter 'K' is not within its bound; should extend 'java.lang.ClassNotFoundException'">foo2(()->{})</error>;
|
||||
foo2(()->{ <error descr="Unhandled exception: java.lang.ClassNotFoundException">throw new ClassNotFoundException();</error> });
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(()->{});</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(()->{ throw new ClassNotFoundException(); });</error>
|
||||
|
||||
<error descr="Inferred type 'java.lang.RuntimeException' for type parameter 'K' is not within its bound; should extend 'java.lang.ClassNotFoundException'">foo2(this::m1)</error>;
|
||||
foo2(<error descr="Unhandled exception: java.lang.ClassNotFoundException">this::m2</error>);
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(this::m1);</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(this::m2);</error>
|
||||
|
||||
|
||||
|
||||
foo1(()->{ <error descr="Unhandled exception: java.lang.ClassNotFoundException">throw new ClassNotFoundException();</error> });
|
||||
foo1(()->{ <error descr="Unhandled exception: java.lang.Exception">throw new Exception();</error> });
|
||||
|
||||
foo1(<error descr="Unhandled exception: java.lang.ClassNotFoundException">this::m2</error>);
|
||||
foo1(<error descr="Unhandled exception: java.lang.Exception">this::m3</error>);
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo1(this::m2);</error>
|
||||
<error descr="Unhandled exception: java.lang.Exception">foo1(this::m3);</error>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user