-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Description
Linking to Javadoc with JDK11 doesn't work in Scala 2.13.0-RC1 and later.
This is a build.sbt
:
scalaVersion := "2.13.1"
scalacOptions in (Compile, doc) += "-Xfatal-warnings"
apiMappings ++= {
Map(
scalaInstance.value.libraryJar
-> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")
) ++ Map(
file("/modules/java.base")
-> url("https://docs.oracle.com/en/java/javase/11/docs/api/java.base"),
file("/modules/java.xml")
-> url("https://docs.oracle.com/en/java/javase/11/docs/api/java.xml")
)
}
A simple Scala file, A.scala
:
/**
* [[java.lang.Throwable]]
* [[scala.AnyRef]]
*/
class A
Running doc
in sbt:
[error] A.scala:1:1: Could not find any member to link for "java.lang.Throwable".
[error] /**
[error] ^
[error] one error found
[error] (Compile / doc) Scaladoc generation failed
Repository with minimal example:
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
Select code repository
Activity
ashawley commentedon Dec 28, 2019
A git bisect tracks it down to scala/scala#7782
It could be.
There is a reference to
underlyingSource
in scaladoc:https://github.com/scala/scala/blob/2d9e6ac/src/scaladoc/scala/tools/nsc/doc/model/MemberLookup.scala#L61
steven-barnes commentedon Jan 10, 2020
ashawley commentedon Jan 16, 2020
steven-barnes commentedon Jan 16, 2020
steven-barnes commentedon Jan 16, 2020
steven-barnes commentedon Jan 16, 2020
ashawley commentedon Jan 16, 2020
ashawley commentedon Jan 16, 2020
This is a difficult problem to work on because there isn't a good testing story with Scaladoc in the Scala build, and even more the case for JDK11 issues.
36 remaining items