United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7091528 javadoc attempts to parse .class files
7091528 : javadoc attempts to parse .class files

Details
Type:
Bug
Submit Date:
2011-09-16
Status:
Closed
Updated Date:
2012-02-24
Project Name:
JDK
Resolved Date:
2012-02-24
Component:
tools
OS:
generic
Sub-Component:
javadoc(tool)
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
8

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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
                                     
2011-12-23
EVALUATION

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



Hardware and Software, Engineered to Work Together