javadoc attempts to parse .class files

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 8
    • Affects Version/s: 6
    • Component/s: tools
    • None
    • b08
    • generic
    • generic
    • Verified

        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.

              Assignee:
              Jonathan Gibbons
              Reporter:
              Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: