-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaladoc generates incorrect link to JDK API docs with -release
option
#12820
Comments
I saw this on the good first issue label. I'd be interested in fixing this bug. I've done a long write-up in the contributors forum. The gist would be ...
|
A different but related replication would be to use the
The generated scala docs link to ...
Which is missing the java module prefix.
|
If you're running an older JVM, the older JVM is it, that's all you have. I don't understand how you would be "getting the class from JDK17 running on the JVM of an earlier version" or what that even means? It sounds like you may have an incorrect belief we need to straighten out, but it's also possible I'm not just following your wording/thinking. Under |
Reproduction steps
Scala version: 2.13.11
JDK version: 17.0.7 (OpenJDK)
sbt version: 1.9.1
build.sbt
:Problem
The generated API documentation (with
sbt doc
) contains an incorrect (dead) link to theAtomicReference
apidoc. The incorrect link is https://docs.oracle.com/en/java/javase/17/docs/api/java/util/concurrent/atomic/AtomicReference.html (there is ajava.base
missing). Also note that the version is17
, regardless of the-release 11
setting.Without the
-release
setting, the generated link is correct: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/concurrent/atomic/AtomicReference.html.Originally I've opened an issue here, but it seems the problem is not sbt-plugin specific (probably not even sbt specific).
The text was updated successfully, but these errors were encountered: