Skip to content

Commit d2ec0a5

Browse files
committed
Fix broken Scaladoc external Java references
The problem was that PlainNioFile.underlyingSource was expanding "/modules/java.base" into a full path, where as the lookup in findExternalLink was using relative paths ("/modules/java.base.jmod")
1 parent 8d78319 commit d2ec0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reflect/scala/reflect/io/PlainFile.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ final class PlainNioFile(val nioPath: java.nio.file.Path) extends AbstractFile {
151151
if (nioPath.getNameCount > 2 && nioPath.startsWith("/modules")) {
152152
// TODO limit this to OpenJDK based JVMs?
153153
val moduleName = nioPath.getName(1)
154-
Some(new PlainNioFile(Paths.get(System.getProperty("java.home"), "jmods", moduleName.toString + ".jmod")))
154+
Some(new PlainNioFile(Paths.get("/modules", moduleName.toString + ".jmod")))
155155
} else None
156156
case _ => None
157157
}

0 commit comments

Comments
 (0)