Maven Javadoc Plugin
  1. Maven Javadoc Plugin
  2. MJAVADOC-393

-link option values have their trailing slash removed; breaks javadoc 8

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      The version of javadoc that ships with Java 8 has changed such that any value supplied to the -link option must have a trailing slash (at least on my Mac).

      Line 2932 of AbstractJavadocMojo.java programmatically strips the trailing slashes from the links property elements, ensuring that javadoc version 8 cannot process its -link options properly.

        Issue Links

          Activity

          Hide
          Laird Nelson added a comment -

          Line 3932, sorry.

          Show
          Laird Nelson added a comment - Line 3932, sorry.
          Hide
          Laird Nelson added a comment -

          Submitted a patch correcting the trailing-slash-stripping behavior now that javadoc 1.8 no longer deals properly with non-slash-terminated -link options.

          Show
          Laird Nelson added a comment - Submitted a patch correcting the trailing-slash-stripping behavior now that javadoc 1.8 no longer deals properly with non-slash-terminated -link options.
          Hide
          Laird Nelson added a comment - - edited

          Added a link to the JDK bug that requires a trailing slash for the -link option to javadoc.

          Show
          Laird Nelson added a comment - - edited Added a link to the JDK bug that requires a trailing slash for the -link option to javadoc.
          Hide
          Laird Nelson added a comment -

          Added a link to the backport of JDK-8038976, which looks like it will land in the next update of JDK 8.

          Show
          Laird Nelson added a comment - Added a link to the backport of JDK-8038976 , which looks like it will land in the next update of JDK 8.
          Hide
          Hervé Boutemy added a comment -

          IIUC, JDK8 should be fixed in 8u20, expected between july and october 2014: I really wonder if we should implement this workaround...

          Show
          Hervé Boutemy added a comment - IIUC, JDK8 should be fixed in 8u20, expected between july and october 2014: I really wonder if we should implement this workaround...
          Hide
          Michael Osipov added a comment -

          I would rather close as wontfix.

          Show
          Michael Osipov added a comment - I would rather close as wontfix.
          Hide
          Dennis Lundberg added a comment -

          Java 8u20 is out now and fixes the problem mentioned in this issue.
          I also propose that we close this as "wont fix" because it is a bug in the JDK for which there is a fix available.

          Show
          Dennis Lundberg added a comment - Java 8u20 is out now and fixes the problem mentioned in this issue. I also propose that we close this as "wont fix" because it is a bug in the JDK for which there is a fix available.
          Hide
          Dennis Lundberg added a comment -

          I've added an entry in the FAQ for 2.10 about this issue.

          Show
          Dennis Lundberg added a comment - I've added an entry in the FAQ for 2.10 about this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Laird Nelson
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development