Skip to content

prepare JDK 23#370

Merged
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:JDK-23-java-io-IO
Aug 20, 2024
Merged

prepare JDK 23#370
eed3si9n merged 1 commit intosbt:developfrom
xuwei-k:JDK-23-java-io-IO

Conversation

@xuwei-k
Copy link
Copy Markdown
Member

@xuwei-k xuwei-k commented Aug 20, 2024

io/src/main/scala/sbt/io/Using.scala:15:8: This wildcard import imports java.io.IO, which is shadowed by sbt.io.IO.
[error] This is not according to the language specification and has changed in Scala 2.13, where java.io.IO takes precedence.
[error] To keep the same meaning in 2.12 and 2.13, un-import IO by adding `IO => _` to the import list.
[error] import java.io._
[error]        ^
[error] one error found
[error] (io / Compile / compileIncremental) Compilation failed

xuwei-k referenced this pull request in scala/community-build Aug 20, 2024
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eed3si9n eed3si9n merged commit ee6c3e9 into sbt:develop Aug 20, 2024
@xuwei-k xuwei-k deleted the JDK-23-java-io-IO branch August 20, 2024 03:33
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

Successfully merging this pull request may close these issues.

2 participants