RFR: 8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
Jan Lahoda
jlahoda at openjdk.org
Fri Dec 2 11:57:24 UTC 2022
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
-------------
Commit messages:
- 8297974: ClassCastException in com.sun.tools.javac.comp.AttrRecover.doRecovery
Changes: https://git.openjdk.org/jdk/pull/11479/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11479&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8297974
Stats: 105 lines in 2 files changed: 104 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/11479.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11479/head:pull/11479
PR: https://git.openjdk.org/jdk/pull/11479
More information about the compiler-dev
mailing list