[jdk16] RFR: 8253954: javac crash when compiling code with enhanced switch expressions with option -Xjcov
jjg at openjdk.java.net
Wed Dec 23 21:11:59 UTC 2020
On Wed, 23 Dec 2020 20:25:06 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Please review this one liner patch that is fixing a crash in javac when compiling with option `-Xjcov`. The crash was due to an assertion failure at `com.sun.tools.javac.jvm.CRTable` as no position was found for compiler generated `yield` trees in some cases. The fix is to visit the `value` expression in the `yield` tree so that when the CRT table is being generated, the position for the `yield` tree is not `null`
Looks OK to me
Marked as reviewed by jjg (Reviewer).
More information about the compiler-dev