langtools/test/com/sun/javadoc/testOverridenMethods/TestOverridenPrivateMethodsWithPackageFlag.java
changeset 21008 af0b915df7cc
parent 19253 b97b3e18547f
child 21478 fa4c7cda1b41
equal deleted inserted replaced
21007:484c9d902861 21008:af0b915df7cc
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4634891
    26  * @bug 4634891 8025633
    27  * @summary Determine if overriden methods are properly documented when
    27  * @summary Determine if overriden methods are properly documented when
    28  * -protected (default) visibility flag is used.
    28  * -protected (default) visibility flag is used.
    29  * @author jamieh
    29  * @author jamieh
    30  * @library ../lib/
    30  * @library ../lib/
    31  * @build JavadocTester
    31  * @build JavadocTester
    39 
    39 
    40     private static final String[][] TEST = {
    40     private static final String[][] TEST = {
    41         //The public method should be overriden
    41         //The public method should be overriden
    42         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    42         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    43          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    43          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    44                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod()\">" +
    44                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod--\">" +
    45                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
    45                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
    46                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    46                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    47 
    47 
    48         //The public method in different package should be overriden
    48         //The public method in different package should be overriden
    49         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    49         {BUG_ID + FS + "pkg2" + FS + "SubClass.html",
    50          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    50          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    51                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod()\">" +
    51                  "<dd><code><a href=\"../pkg1/BaseClass.html#publicMethod--\">" +
    52                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
    52                  "publicMethod</a></code>&nbsp;in class&nbsp;<code>" +
    53                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    53                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"},
    54 
    54 
    55         //The package private method should be overriden since the base and sub class are in the same
    55         //The package private method should be overriden since the base and sub class are in the same
    56         //package.
    56         //package.
    57         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    57         {BUG_ID + FS + "pkg1" + FS + "SubClass.html",
    58          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    58          "<dt><span class=\"strong\">Overrides:</span></dt>" + NL +
    59                  "<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod()\">" +
    59                  "<dd><code><a href=\"../pkg1/BaseClass.html#packagePrivateMethod--\">" +
    60                  "packagePrivateMethod</a></code>&nbsp;in class&nbsp;<code>" +
    60                  "packagePrivateMethod</a></code>&nbsp;in class&nbsp;<code>" +
    61                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"}
    61                  "<a href=\"../pkg1/BaseClass.html\" title=\"class in pkg1\">BaseClass</a></code></dd>"}
    62     };
    62     };
    63 
    63 
    64     private static final String[][] NEGATED_TEST = {
    64     private static final String[][] NEGATED_TEST = {