Skip to content

Commit aced7e0

Browse files
committed
Fix nio.Path in dotty doc and ensure that its compilation is tested
1 parent aeec429 commit aced7e0

File tree

1 file changed

+1
-1
lines changed
  • doc-tool/src/dotty/tools/dottydoc/staticsite

1 file changed

+1
-1
lines changed

doc-tool/src/dotty/tools/dottydoc/staticsite/Site.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ case class Site(
409409
}
410410

411411
private def toSourceFile(f: JFile): SourceFile =
412-
SourceFile(AbstractFile.getFile(new File(f)), Source.fromFile(f).toArray)
412+
SourceFile(AbstractFile.getFile(new File(f.toPath)), Source.fromFile(f).toArray)
413413

414414
private def collectFiles(dir: JFile, includes: String => Boolean): Array[JFile] =
415415
dir

0 commit comments

Comments
 (0)