[jdk16] Integrated: 8253954: javac crash when compiling code with enhanced switch expressions with option -Xjcov
Vicente Romero
vromero at openjdk.java.net
Thu Dec 24 01:26:55 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`
>
> TIA
This pull request has now been integrated.
Changeset: 23b83c51
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.java.net/jdk16/commit/23b83c51
Stats: 45 lines in 2 files changed: 45 ins; 0 del; 0 mod
8253954: javac crash when compiling code with enhanced switch expressions with option -Xjcov
Reviewed-by: jjg
-------------
PR: https://git.openjdk.java.net/jdk16/pull/66
More information about the compiler-dev
mailing list