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

JDK13: error: value mkString is not a member of java.util.stream.Stream[String] #12049

Closed
kkalavantavanich opened this issue Jun 22, 2020 · 3 comments

Comments

@kkalavantavanich
Copy link

Reproduction Steps

using Scala 2.13.2 and Java 13.0.2 on MacOS,

scala> def foo(s: String) = s.lines.mkString(":")
error: value mkString is not a member of java.util.stream.Stream[String]
did you mean toString?

Problem

There should be no error.

@Jasper-M
Copy link
Member

#11125 use linesIterator instead.

@kkalavantavanich
Copy link
Author

@Jasper-M Thanks. Sorry I wasn't able to find that.

@SethTisue
Copy link
Member

SethTisue commented Jun 22, 2020

@kkalavantavanich note that better places to ask questions include https://users.scala-lang.org and https://gitter.im/scala/scala

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

3 participants