Skip to content
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

Java 11 URLs contain module name #58

Closed
ennru opened this issue Mar 16, 2020 · 2 comments
Closed

Java 11 URLs contain module name #58

ennru opened this issue Mar 16, 2020 · 2 comments

Comments

@ennru
Copy link

ennru commented Mar 16, 2020

The current Javadocs for JDK 11 even require the module name in the URL:

  • eg contain java.base:

https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/Duration.html

The current mapping issued by this plugin lacks the module name and creates

https://docs.oracle.com/en/java/javase/11/docs/api/java/time/Duration.html

@ennru
Copy link
Author

ennru commented Apr 15, 2020

Alright, as most JDK classes live in java.base I can overwrite the plugin's default URL with

.settings(
 com.thoughtworks.sbtApiMappings.BootstrapApiMappings.autoImport.bootstrapJavadocURL := 
    url("https://docs.oracle.com/en/java/javase/11/docs/api/java.base")
)

but that won't solve linking to eg. java.util.logging.Logger.

@ennru
Copy link
Author

ennru commented Apr 15, 2020

This fix in Scaladoc tries to sort out this problem in a different context scala/scala#8663 driven by scala/scala-xml#384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant