Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-662

Generated javadoc for static final fields should be HTML escaped

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • fix
    • None

    Description

      https://github.com/apache/maven-javadoc-plugin/pull/59

          protected static final int MultiTime = 1 << 4;
      

      will become

          /** Constant <code>MultiTime=1 << 4</code> */
          protected static final int MultiTime = 1 << 4;
      

      after calling fix operation.

      And notice that the << in the doc is NOT allowed by html, thus will fail the javadoc jar generation.
      should use &lt&lt instead.

      The expected correct result should be:

          /** Constant <code>MultiTime=1 &lt;&lt; 4</code> */
          protected static final int MultiTime = 1 << 4;
      

      I think I can fix it, but I'm too tired today, tomorrow I will see if I can get some time for the fix.
      update: fix done at https://github.com/apache/maven-javadoc-plugin/pull/59

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              XenoAmess Jin Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: