JDK-8261784 : javadoc -notimestamp option does not work on index.html
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: x86_64
  • Submitted: 2021-02-11
  • Updated: 2021-06-25
  • Resolved: 2021-06-25
Related Reports
Duplicate :  
Description
ADDITIONAL SYSTEM INFORMATION :
macOS 10.15.7
JDK 11.0.10
IntelliJ IDEA

A DESCRIPTION OF THE PROBLEM :
When running javadoc for a project, it still adds a timestamp to index.html of the generated JavaDocs. Here is an IntelliJ issue on the matter in which it was found that the issue occurs on 11.0.10 (and likely earlier iterations of Java 11) but not in Java 15: https://intellij-support.jetbrains.com/hc/en-us/requests/3131302?page=1

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Download https://jbs.zendesk.com/attachments/token/aLDXbXPZBck8UTc7aHhdnQ1O6/?name=JavadocTest.zip

2. Open project in IntelliJ IDEA Ultimate 2020.3.2.

3. Click the project root directory, and run Tools -> Generate Javadoc...

4. Run it with the options present in the following image (where the output directory can be changed if desired): https://i.imgur.com/8GArMuS.png

5. View index.html in the output directory, and see the timestamp

This result also occurs by running the javadoc command with the corresponding options on the command line.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No timestamp would be generated in index.html.
ACTUAL -
A timestamp is generated in index.html.

---------- BEGIN SOURCE ----------
https://jbs.zendesk.com/attachments/token/aLDXbXPZBck8UTc7aHhdnQ1O6/?name=JavadocTest.zip
---------- END SOURCE ----------

FREQUENCY : always



Comments
Since it has been fixed in JDK 14 onwards, I'm closing this as Not an Issue.
04-03-2021

The issue is reproducible with JDK 11 builds and not with JDK 14 onwards. It is reproducible in Windows and Linux OS. I have not checked with MAC OS. javadoc puts timestamp inspite of using -notimestamp option in javadoc. HTML content of generated index.html <head> <!-- Generated by javadoc (11.0.9) on Tue Feb 16 10:07:59 IST 2021 --> <title>Generated Documentation (Untitled)</title> .. ..
16-02-2021

Information received from submitter =============================== java version "11.0.9" 2020-10-20 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode) The updated test project is attached to this email. To simulate the issue without IntelliJ IDEA, do the following: 1. cd into the unzipped project directory 2. Run "javadoc -private -splitindex -notimestamp -link https://docs.oracle.com/en/java/javase/11/docs/api/ -d ./doc -sourcepath ./src -subpackages org��� without the quotes. 3. View index.html in the generated JavaDocs in the doc directory.
16-02-2021

Closing the issue as Cannot reproduce. Will reopen once the reproducible steps are received from the submitter.
15-02-2021

Requested submitter to provide steps that does not involve IntelliJ IDE for reproducing the issue.
15-02-2021