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

doclint: incorrect position for diagnostic for illegal text in tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • tools
    • 8
    • b75
    • Verified

      For the following test case, doclint report each instance of illegal text at the position of the
      end-tag. This position may be separated from the illegal text by large amount of content.
      It would be more user friendly if the diagnostic identified the position of the illegal text.

      Also, if a table doesn't have a summary or caption, doclint will not report on illegal text.

      /**
       * <dl> <li>item1</li>illegal text <li>item2</li></dl>
       * <ol> <li>item1</li>illegal text <li>item2</li></ol>
       * <ul> <li>item1</li>illegal text <li>item2</li></ul>
       * <table> illegal text
       * <tbody> illegal text
       * <tr> illegal text <td> lots of table content</td></tr>
       * </tbody>
       * <caption>no caption or summary, no warning about illegal text</caption>
       * </table>
       */

            jjg Jonathan Gibbons (Inactive)
            strarup Peter Jensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: