Maven JXR
  1. Maven JXR
  2. JXR-11

JXR does not handles multiple classes in one source file

    Details

    • Type: Bug Bug
    • Status: 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

      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

          Olivier Mengué created issue -
          Olivier Mengué made changes -
          Field Original Value New Value
          Attachment FTP.java [ 13590 ]
          Carlos Sanchez made changes -
          Link This issue is related to MPJXR-27 [ MPJXR-27 ]
          Lukas Theussl made changes -
          Affects Version/s 1.4.1 [ 10922 ]
          Project maven-jxr-plugin [ 10341 ] Maven JXR [ 11085 ]
          Key MPJXR-21 JXR-11
          Brett Porter made changes -
          Workflow jira [ 30005 ] Maven New [ 55361 ]
          Dennis Lundberg made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Dennis Lundberg [ dennislundberg ]
          Fix Version/s 1.1 [ 12533 ]
          Resolution Fixed [ 1 ]
          Dennis Lundberg made changes -
          Component/s jxr [ 12710 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:32:48 UTC 2015 [ 1428229968272 ]
          Mark Thomas made changes -
          Workflow jira [ 12722074 ] Default workflow, editable Closed status [ 12748991 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 00:07:28 UTC 2015 [ 1428278848796 ]
          Mark Thomas made changes -
          Workflow jira [ 12959651 ] Default workflow, editable Closed status [ 12996657 ]
          Mark Thomas made changes -
          Assignee dennislundberg [ dennislundberg ] Dennis Lundberg [ dennisl@apache.org ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development