Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7091528

javadoc attempts to parse .class files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 8
    • 6
    • tools
    • None
    • b08
    • generic
    • generic
    • Verified

    Backports

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: