RFR [15] 8246078: Javadoc Search specification link from Javadoc Help page points to JDK 13 spec
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Jun 17 16:44:10 UTC 2020
It's OK (to push) but that being said ...
The checking/passed/failed mechanism is typically not used outside
JavadocTester.
A better (future) RFE would be to provide overloads in JavadocTester to
accept
regular expressions.
Stylistically, I think it is better to handle custom uses of
checking/passed/failed in
new check... methods (even if in the test). Think of 'checking' as
"opening a check"
and the matching "passed" or "finally" as the close for the check.
I'll update JavadocTester (JDK-8247760)
-- Jon
On 6/17/20 9:25 AM, Pavel Rappo wrote:
> Jon,
>
> Here's a new webrev:
>
> http://cr.openjdk.java.net/~prappo/8246078/webrev.01/
>
> I couldn't find any "suitable test" to add an extra test case to, so I created a new one:
>
> test/langtools/jdk/javadoc/doclet/testHelpPage/TestHelpPage.java
>
> -Pavel
>
>> On 16 Jun 2020, at 19:24, Jonathan Gibbons <jonathan.gibbons at oracle.com> wrote:
>>
>> Pavel,
>>
>> It's `noreg-impractical` to test cross version functionality, but should there be a test for the "same-version" functionality. There may be a suitable test already, in which case, it may be enough to add the bug number.
>>
>> -- Jon
>>
>> On 6/15/20 8:55 AM, Pavel Rappo wrote:
>>> Hello,
>>>
>>> Please review the change for https://bugs.openjdk.java.net/browse/JDK-8246078
>>>
>>> http://cr.openjdk.java.net/~prappo/8246078/webrev.00/
>>>
>>> Note: That bug affects those who run Javadoc as a Java application rather than as a tool; and only on a JVM from a Platform of a version different than the version of the Platform that Javadoc comes from. For example, we run the "java" command from a previous version of JDK with the "jdk.javadoc.internal.tool.Start" main class from a newer version of JDK to build the API Documentation for that newer JDK.
>>>
>>> ***
>>>
>>> The Search feature conforms to the Javadoc Search Specification. That specification belongs to a bundle of specifications accompanying each modern release of Java Platform. A URL to that bundle as well as to any of the specifications from that bundle encodes the corresponding version of Java Platform. For example, the specification bundle for JDK 14 can be accessed at:
>>>
>>> https://docs.oracle.com/en/java/javase/14/docs/specs/
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>>>
>>> and the Javadoc Search Specification from that bundle at:
>>>
>>> https://docs.oracle.com/en/java/javase/14/docs/specs/javadoc/javadoc-search-spec.html
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
>>> The Javadoc Search Specification is linked to from the Help page of the documentation produced by the Standard doclet. To construct the URL, the Standard doclet uses the result of `Runtime.Version().feature()` as the target version of the Java Platform. This is incorrect since that would be a version of the platform (java --version) Javadoc is being run on, not necessarily the version of Javadoc (javadoc --version).
>>>
>>> The change fixes that and refactors the code around. I hope the code is more clear now.
>>>
>>> -Pavel
>>>
More information about the javadoc-dev
mailing list