VerifyError: Inconsistent stackmap frames at branch target #12993
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
help wanted
Milestone
Reproduction steps
Java: Oracle HotSpot 17.0.6+9-LTS-190, OpenJDK Temurin-17.0.8+7.
Scala versions: 2.13.10, 2.13.14.
I faced the behaviour using spray json ("io.spray" %% "spray-json" % "1.3.6"), and I couldn't minimise the snippet to clean scala, but the hint to the nature of the bug is the two workarounds at the bottom of this report.
Problem
It gets compiled successfully, but when I run I get
But it goes away when I rewrite the source code as
or even when I drop the last addition of the "\n" string:
The both snippets above yield
with and without the last newline respectively.
The text was updated successfully, but these errors were encountered: