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
Very large string literals generate class files with errors #7527
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7527?orig=1
|
@Blaisorblade said: According to the JVM spec, the byte length of strings literals in class files is stored in a 2-byte field, so if the byte length is greater than 65536 it won't fit. The character length might even be less while still triggering the problem. |
John Thywissen (jthywiss) said: A very long triple quoted string results in scala.tools.asm throwing an IllegalArgumentException, which is reported in the UI as: java.lang.IllegalArgumentException |
@Blaisorblade said: |
@som-snytt said:
|
meet same error when call length() on a very large string scastie example |
When attempting to run the attached file with a large (>65535 character) String literal, I get the following error:
The text was updated successfully, but these errors were encountered: