-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VerifyError: Inconsistent stackmap frames at branch target #12993
Comments
String concat is handled in the backend. Variants that induce Uncurry to lift the try will work. Other superficially similar ops such as
|
just for fun
|
I guess we could fix this by backporting scala/scala3#18619 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: