Skip to content

Commit

Permalink
Merge pull request #106 from ThoughtWorksInc/jdk-11
Browse files Browse the repository at this point in the history
Fix URL for JDK 11 (fix #58)
  • Loading branch information
Atry committed Mar 19, 2022
2 parents 46f8133 + 87230de commit 9954128
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -30,7 +30,9 @@ object BootstrapApiMappings extends AutoPlugin {
case _ => 8
}
if (javaVersion >= 11) {
url(s"https://docs.oracle.com/en/java/javase/${javaVersion}/docs/api/")
url(
s"https://docs.oracle.com/en/java/javase/${javaVersion}/docs/api/java.base/"
)
} else {
url(s"https://docs.oracle.com/javase/${javaVersion}/docs/api/")
}
Expand All @@ -50,7 +52,7 @@ object BootstrapApiMappings extends AutoPlugin {

if (!ManagementFactory.getRuntimeMXBean.isBootClassPathSupported) {
// Copied from scala-js/project/Build.scala for Java 9 or later
Map(file("/modules/java.base") -> bootstrapJavadocURL.value)
Map(file("/modules/java.base") -> url)
} else {
ManagementFactory.getRuntimeMXBean.getBootClassPath
.split(File.pathSeparatorChar)
Expand Down

0 comments on commit 9954128

Please sign in to comment.