JDK-8050031 : [javadoc] class-use pages have duplicates and missing entries
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-07-11
  • Updated: 2015-06-04
  • Resolved: 2014-08-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b29Fixed
Related Reports
Relates :  
Description
There exists bugs in the current implementation which introduces duplicate entries in the class-use listing.
The problems stem from:
   a: the sets are not sorted
   b: the Doc comparator is faulty and allows duplicate entries to be inserted, 
   c: faulty logic in eliminating duplicated entries.

For example:
http://docs.oracle.com/javase/8/docs/api/java/lang/class-use/String.html
Process     Runtime.exec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.

Process     Runtime.exec(String[] cmdarray, String[] envp)
Executes the specified command and arguments in a separate process with the specified environment.

Process     Runtime.exec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.

Process     Runtime.exec(String[] cmdarray, String[] envp, File dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory.

Process     Runtime.exec(String command, String[] envp)
Executes the specified string command in a separate process with the specified environment.

Process     Runtime.exec(String command, String[] envp)
Executes the specified string command in a separate process with the specified environment.


There are some tests case to check for duplication however it is difficult to come up with
test case for inclusion.