langtools/test/tools/doclint/LiteralTest.java
author fyuan
Thu, 11 Aug 2016 10:20:44 +0800
changeset 40292 bcb68f9b7b34
parent 30730 d3ce7619db2c
permissions -rw-r--r--
8163468: javax/xml/jaxp/unittest/validation/Bug6773084Test.java fails intermittently Reviewed-by: joehw, dfuchs, amlu Contributed-by: Frank Yuan <frank.yuan@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15366
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     1
/*
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     3
 * @bug 8006228
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     4
 * @summary Doclint doesn't detect <code> {@code nested inline} </code>
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 15366
diff changeset
     5
 * @modules jdk.compiler/com.sun.tools.doclint
15366
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     6
 * @build DocLintTester
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -ref LiteralTest.out LiteralTest.java
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     8
 */
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
     9
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    10
/** */
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    11
public class LiteralTest {
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    12
    /** <code> abc {@literal < & > } def </code> */
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    13
    public void ok_literal_in_code() { }
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    14
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    15
    /** <code> abc {@code < & > } def </code> */
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    16
    public void bad_code_in_code() { }
545307ec740c 8006228: Doclint doesn't detect <code> {@code nested inline} </code>
jjg
parents:
diff changeset
    17
}