Maven JXR
  1. Maven JXR
  2. JXR-11

JXR does not handles multiple classes in one source file

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: jxr
    • Labels:
      None
    • Environment:
      Maven 1.0.2
      maven-jxr-plugin 1.4.2
    • Number of attachments :
      1

      Description

      JRX does not handles multiple top level classes (this bug is not about inner classes) defined in one source file :

      • a link is set on the first class defined in the file that point to $(className).html which doesn't exist if the class is not public (so the source file is not $(className).java).
      • other classes of the file are not linked. In particular, the public class may not be linked.
      • in the class list, some links point ton non-existent files.

      Quickfix: ignore all non-public classes.

      Long term fix: link all classes. However, this requires to analyse all sources to build the map class->source-file before generating any HTML file.

      1. FTP.java
        8 kB
        Olivier Mengué

        Issue Links

          Activity

          Hide
          Olivier Mengué added a comment -

          Example of source file that is not correctly linked.
          Licence for this file : GPL.

          Show
          Olivier Mengué added a comment - Example of source file that is not correctly linked. Licence for this file : GPL.

            People

            • Assignee:
              Dennis Lundberg
              Reporter:
              Olivier Mengué
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: