Integrated: 8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
Jan Lahoda
jlahoda at openjdk.org
Mon Dec 5 09:37:54 UTC 2022
On Fri, 2 Dec 2022 11:46:32 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> Considering code like:
>
> class RecoveryTest {
>
> interface I {
> int convert(int i);
> }
>
> void t(I f, String e) {
> t(param -> param); //a parameter missing here
> }
>
> }
>
>
> This is clearly wrong (the invocation of `t` is missing a parameter). But, running this crashes the compiler in addition to reporting the error:
>
> $ javac -XDdev RecoveryTest.java
This pull request has now been integrated.
Changeset: 777fb52e
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/777fb52ef5b0d95b756ce4fa71a7ddf2d7d2a8f1
Stats: 105 lines in 2 files changed: 104 ins; 0 del; 1 mod
8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/jdk/pull/11479
More information about the compiler-dev
mailing list