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

javadocs incorrectly parses FirstSentence tags.

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:
      None

      Description

      Supposing we have:
          /**
           * <pre>
           * Result: {@value pkg1.Class1#TEST_8_PASSES}
           * Result: {@value pkg2.Class3#TEST_13_PASSES}
           * </pre>
           */
          public int field;

      The first sentence tags array contains the contents of <pre> along
      with the Html attribute.
      This is even worse with this case:
       * <pre>
       * This is a sentence.
       * This is another sentence.
       * </pre>
      Where the first sentence tags contains only
      <pre> This is another sentence.
      Causing malformed tags.

      Therefore the "<" must be regarded as a break.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ksrini Kumar Srinivasan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: