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

Cross-refs to JDK 11 broken in Scaladoc 2.13 #384

Open
ashawley opened this issue Dec 26, 2019 · 4 comments
Open

Cross-refs to JDK 11 broken in Scaladoc 2.13 #384

ashawley opened this issue Dec 26, 2019 · 4 comments

Comments

@ashawley
Copy link
Member

While working on #383, I noticed that links to Javadoc don't work for JDK 11 and later with Scala 2.13. The warnings in the sbt console bear this out.

[warn] shared/src/main/scala/scala/xml/package.scala:11:1: Could not
[warn] find any member to link for "javax.xml.parsers.SAXParser".
[warn] /**
[warn] ^
[warn] shared/src/main/scala/scala/xml/parsing/FactoryAdapter.scala:188:3:
[warn] Could not find any member to link for "org.xml.sax.SAXException".
[warn]   /**
[warn]   ^
[warn] shared/src/main/scala/scala/xml/include/XIncludeException.scala:13:1:
[warn] Could not find any member to link for
[warn] "java.lang.Throwable#getMessage".
[warn] /**
[warn] ^
[warn] shared/src/main/scala/scala/xml/include/sax/EncodingHeuristics.scala:38:3:
[warn] Could not find any member to link for "java.io.IOException".
[warn]   /**
[warn]   ^
@ashawley
Copy link
Member Author

This used to work when the code for apiMappings was added in #180. That was the days of JDK9 and Scala 2.13.0-M3. It seems it worked all the way to Scala 2.13.0-M5 but then broke with Scala-2.13.0-RC1.

@SethTisue
Copy link
Member

I can't remember if this question has come up before: could this be outsourced to https://github.com/ThoughtWorksInc/sbt-api-mappings ?

@ashawley
Copy link
Member Author

It is possible. This was a lighterweight solution, but there is also a particular configuration scala-xml has that sbt-api-mappings is missing about the java.xml module.

@ashawley
Copy link
Member Author

Bug report filed upstream scala/bug#11839

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

2 participants