Skip to content

Commit 9bc5452

Browse files
Fix infinite loop in pathSeparator...
1 parent 9751e7c commit 9bc5452

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/io/File.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
package dotty.tools.io
1010

11-
import java.io._
11+
import java.io.{File => JavaIoFile, _}
1212
import java.nio.file.{Files, Paths}
1313
import java.nio.file.StandardOpenOption._
1414

@@ -17,8 +17,8 @@ import scala.io.Codec
1717
* ''Note: This library is considered experimental and should not be used unless you know what you are doing.''
1818
*/
1919
object File {
20-
def pathSeparator: String = File.pathSeparator
21-
def separator: String = File.separator
20+
def pathSeparator: String = JavaIoFile.pathSeparator
21+
def separator: String = JavaIoFile.separator
2222

2323
def apply(path: String)(implicit codec: Codec): File = apply(Paths.get(path))
2424
def apply(path: JPath)(implicit codec: Codec): File = new File(path)

0 commit comments

Comments
 (0)