Skip to content
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

Compilation with JDK 11 failed due to changes in the Java String API #5463

Closed
Glavo opened this issue Nov 19, 2018 · 0 comments
Closed

Compilation with JDK 11 failed due to changes in the Java String API #5463

Glavo opened this issue Nov 19, 2018 · 0 comments

Comments

@Glavo
Copy link
Contributor

Glavo commented Nov 19, 2018

The String#lines method has been added to the Java 11 String, this change causes Dotty to fail to compile:

[error] /home/glavo/Dotty/dotty/compiler/src/dotty/tools/dotc/util/ParsedComment.scala:151:44: value mkString is not a member of java.util.stream.Stream[String]
[error]     val formattedItems = items.map(_.lines.mkString(System.lineSeparator + "   "))
[error]                                            ^
[error] one error found
[error] (dotty-compiler / Compile / compileIncremental) Compilation failed
[error] Total time: 29 s, completed 2018年11月19日 下午5:35:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant