langtools/test/com/sun/javadoc/testPrivateClasses/TestPrivateClasses.java
changeset 25454 376a52c9540c
parent 24399 af1a0220d0fa
child 30730 d3ce7619db2c
equal deleted inserted replaced
25453:be80cf0463b3 25454:376a52c9540c
    89                 "Description copied from",
    89                 "Description copied from",
    90                 // Don't extend private classes or interfaces
    90                 // Don't extend private classes or interfaces
    91                 "PrivateParent",
    91                 "PrivateParent",
    92                 "PrivateInterface");
    92                 "PrivateInterface");
    93 
    93 
       
    94         checkOutput("pkg/PublicChild.html", false,
       
    95                 // Should not document comments from private inherited interfaces
       
    96                 "<td class=\"colLast\"><code><span class=\"memberNameLink\">" +
       
    97                 "<a href=\"../pkg/PublicChild.html#methodInterface-int-\">" +
       
    98                 "methodInterface</a></span>(int&nbsp;p1)</code>\n" +
       
    99                 "<div class=\"block\">Comment from interface.</div>\n</td>",
       
   100                 // and similarly one more
       
   101                 "<td class=\"colLast\"><code><span class=\"memberNameLink\">" +
       
   102                 "<a href=\"../pkg/PublicChild.html#methodInterface2-int-\">" +
       
   103                 "methodInterface2</a></span>(int&nbsp;p1)</code>\n" +
       
   104                 "<div class=\"block\">Comment from interface.</div>\n</td>"
       
   105         );
       
   106 
    94         checkOutput("pkg/PublicInterface.html", true,
   107         checkOutput("pkg/PublicInterface.html", true,
    95                 // Field inheritance from non-public superinterface.
   108                 // Field inheritance from non-public superinterface.
    96                 "<a href=\"../pkg/PublicInterface.html#fieldInheritedFromInterface\">"
   109                 "<a href=\"../pkg/PublicInterface.html#fieldInheritedFromInterface\">"
    97                 + "fieldInheritedFromInterface</a>",
   110                 + "fieldInheritedFromInterface</a>",
    98                 // Method inheritance from non-public superinterface.
   111                 // Method inheritance from non-public superinterface.
   109                 "<span class=\"overrideSpecifyLabel\">Specified by:</span>",
   122                 "<span class=\"overrideSpecifyLabel\">Specified by:</span>",
   110                 "Description copied from",
   123                 "Description copied from",
   111                 "PrivateInterface",
   124                 "PrivateInterface",
   112                 "All Superinterfaces");
   125                 "All Superinterfaces");
   113 
   126 
   114         checkOutput("pkg2/C.html", true,
   127         checkOutput("pkg2/C.html", false,
   115                 //Generic interface method test.
   128                 //Generic interface method test.
   116                 "This comment should get copied to the implementing class");
   129                 "This comment should get copied to the implementing class");
   117 
   130 
   118         checkOutput("pkg2/C.html", false,
   131         checkOutput("pkg2/C.html", false,
   119                 //Do not inherit private interface method with generic parameters.
   132                 //Do not inherit private interface method with generic parameters.