-
Notifications
You must be signed in to change notification settings - Fork 21
scala.tools.nsc.javac.JavaParsers can't parse JDK15 Text Blocks (JEP 378) #12290
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
Comments
harpocrates
added a commit
to harpocrates/scala
that referenced
this issue
Mar 23, 2021
JDK15 introduced text blocks (JEP 378) for writing multiline strings. This adds support for parsing these strings in the Java parser. The logic for interpretting the literals is a little complicated, but follows from the "3.10.6. Text Blocks" of the Java language specification. The test cases include examples from there and from the JEP. Fixes scala/bug#12290
harpocrates
added a commit
to harpocrates/scala
that referenced
this issue
Mar 24, 2021
JDK15 introduced text blocks (JEP 378) for writing multiline strings. This adds support for parsing these strings in the Java parser. The logic for interpretting the literals is a little complicated, but follows from the "3.10.6. Text Blocks" of the Java language specification. The test cases include examples from there and from the JEP. Fixes scala/bug#12290
harpocrates
added a commit
to harpocrates/scala
that referenced
this issue
Mar 24, 2021
JDK15 introduced text blocks (JEP 378) for writing multiline strings. This adds support for parsing these strings in the Java parser. The logic for interpretting the literals is a little complicated, but follows from the "3.10.6. Text Blocks" of the Java language specification. The test cases include examples from there and from the JEP. Fixes scala/bug#12290
harpocrates
added a commit
to harpocrates/scala
that referenced
this issue
Mar 26, 2021
JDK15 introduced text blocks (JEP 378) for writing multiline strings. This adds support for parsing these strings in the Java parser. The logic for interpretting the literals is a little complicated, but follows from the "3.10.6. Text Blocks" of the Java language specification. The test cases include examples from there and from the JEP. Fixes scala/bug#12290
@harpocrates if you comment on this ticket, I can assign it to you (merely for credit/glory) |
Imaginary internet credit and glory points? Sign me up! 😆 |
cha-ching! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was originally reported as sbt/sbt#6208 by @larousso
reproduction steps
build.sbt
src/main/java/example/A.java
problem
expectation
No errors.
notes
https://openjdk.java.net/jeps/378
The workaround is to use
Compile / compileOrder := CompileOrder.JavaThenScala
.See also:
The text was updated successfully, but these errors were encountered: