JDK-7091528 : javadoc attempts to parse .class files
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-16
  • Updated: 2012-02-24
  • Resolved: 2012-02-24
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 6 JDK 7 JDK 8 Other
6-poolResolved 7u4Fixed 8 b08Fixed OpenJDK6Fixed
Description
From Deepak Bhole dbhole at redhat.com,
-------------------------------------------------
A javadoc user recently reported a bug for Fedora whereby they were
seeing .class files being compiled by the javadoc tool:
https://bugzilla.redhat.com/show_bug.cgi?id=719118

I have been able to successfully reproduce this locally as well.

 From what I can tell, the issue is that the scanner function searches
for .class files in addition to .java files:

http://hg.openjdk.java.net/jdk7/tl/langtools/file/a72412b148d7/src/share/classes/com/sun/tools/javadoc/JavadocTool.java

(line 270 and 276).

After changing 270 to scan for java files and removing class file kind from
276, I can no longer reproduce the issue as only .java files are
considered then.

Comments
EVALUATION Fixed in jdk7u http://hg.openjdk.java.net/jdk7u/jdk7u-dev/langtools/log?rev=7091528
23-12-2011

EVALUATION Should not include CLASS files in scan.
16-09-2011