-
Notifications
You must be signed in to change notification settings - Fork 27
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
JDK 11's javadoc will look for element-list first, then package-list; static.javadoc.io's responses break it #17
Comments
Isn't 403 an |
More likely this is duplicating #20 feel free to re-open if my understanding is wrong. |
Nope; still present with a custom user agent. I see from your response about a jar file not containing an The issue is that The lack of a 404 response in this case means that |
Note that the behavior I describe (of |
I can second this, with Java 11 it is not workable, with Java 10 it works due to the described reason. Requesting |
And it is not the user-agent topic, Java 10 and Java 11 default user agents are not (yet) blocked by Cloudflare. |
I believe I'm facing this problem. Here comes the result with the
I yet don't understand why javadoc tries to getting the resource of |
Hi, @maxcellent; I don't have the ability to re-open this bug, but as I hope you can see it needs to be addressed. Could you kindly re-open it? |
@onacit as you use Java 8, you are not facing this issue, as it does not happen with Java 8 or 9 or 10. |
JDK 11's
javadoc
appears to look first for anelement-list
file rooted at a URL supplied to it by the-link
option. It does this viaURL#openStream()
. If that results in anIOException
, then it will look forpackage-list
. Butstatic.javadoc.io
's response doesn't trigger anIOException
, sojavadoc
thinks that it has received a proper response. As an arbitrary example, point your browser here: https://static.javadoc.io/org.eclipse.microprofile.config/microprofile-config-api/1.3/element-listRelevant source code: https://hg.openjdk.java.net/jdk-updates/jdk11u/file/7fa95481d1ce/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/util/Extern.java#l292
Because of this,
-link
arguments supplied to JDK 11'sjavadoc
that point tostatic.javadoc.io
will never work.It would be nice if
static.javadoc.io
would respond in this one case with a 404 or whatever condition might be needed forjavadoc
11 to function properly.I'd submit a pull request, but it appears this repository is for issue tracking only.
Thanks for a great service!
The text was updated successfully, but these errors were encountered: