test/tools/doclint/html/TagNotAllowed.java

Mon, 21 Jan 2013 10:07:37 -0800

author
jjg
date
Mon, 21 Jan 2013 10:07:37 -0800
changeset 1507
967052c425a1
parent 1465
test/tools/doclint/tidy/TextNotAllowed.java@a22f23fb7abf
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8006251: doclint: incorrect position for diagnostic for illegal text in tags
Reviewed-by: mcimadamore

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832
     4  * @summary Add new doclint package
     5  * @library ..
     6  * @build DocLintTester
     7  * @run main DocLintTester -ref TagNotAllowed.out TagNotAllowed.java
     8  */
    10 /**
    11  * <dl> <b>abc</b> <dt> term </dt> <b>def</b> <dd> description </dd> <b>ghi</b> </dl>
    12  * <ol> <b>abc</b> <li> item </li> <b>def</b> <li> item </li> <b>ghi</b> </ol>
    13  * <ul> <b>abc</b> <li> item </li> <b>def</b> <li> item </li> <b>ghi</b> </ul>
    14  *
    15  * <table summary=description> <b>abc</b> </table>
    16  * <table summary=description> <thead> <b>abc</b> </thead> </table>
    17  * <table summary=description> <tbody> <b>abc</b> </tbody> </table>
    18  * <table summary=description> <tfoot> <b>abc</b> </tfoot> </table>
    19  * <table summary=description> <tr> <b>abc</b> </tr> </table>
    20  *
    21  * <pre>
    22  *   <img alt="image" src="image.png">
    23  *   <p> para </p>
    24  *   <big> text </big>
    25  *   <small> text </small>
    26  *   <sub> text </sub>
    27  *   <sup> text </sup>
    28  * </pre>
    29  */
    30 public class TagNotAllowed { }

mercurial