langtools/test/jdk/javadoc/doclet/testMemberSummary/TestMemberSummary.java
changeset 44297 e03f5fb3714b
parent 41157 b235a429089a
child 44565 41071e253324
equal deleted inserted replaced
44296:e9bbaeab6f49 44297:e03f5fb3714b
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug      4951228 6290760 8025633 8026567 8081854 8162363
    26  * @bug      4951228 6290760 8025633 8026567 8081854 8162363 8175200
    27  * @summary  Test the case where the overriden method returns a different
    27  * @summary  Test the case where the overriden method returns a different
    28  *           type than the method in the child class.  Make sure the
    28  *           type than the method in the child class.  Make sure the
    29  *           documentation is inherited but the return type isn't.
    29  *           documentation is inherited but the return type isn't.
    30  * @author   jamieh
    30  * @author   jamieh
    31  * @library  ../lib
    31  * @library  ../lib
    50 
    50 
    51         checkOutput("pkg/PublicChild.html", true,
    51         checkOutput("pkg/PublicChild.html", true,
    52                 // Check return type in member summary.
    52                 // Check return type in member summary.
    53                 "<code><a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n"
    53                 "<code><a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">PublicChild</a></code></td>\n"
    54                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"../pkg/PublicChild.html#returnTypeTest--\">"
    54                 + "<th class=\"colSecond\" scope=\"row\"><code><span class=\"memberNameLink\"><a href=\"../pkg/PublicChild.html#returnTypeTest--\">"
    55                 + "returnTypeTest</a></span>()</code>",
    55                 + "returnTypeTest</a></span>&#8203;()</code>",
    56                 // Check return type in member detail.
    56                 // Check return type in member detail.
    57                 "<pre>public&nbsp;<a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">"
    57                 "<pre>public&nbsp;<a href=\"../pkg/PublicChild.html\" title=\"class in pkg\">"
    58                 + "PublicChild</a>&nbsp;returnTypeTest()</pre>");
    58                 + "PublicChild</a>&nbsp;returnTypeTest&#8203;()</pre>");
    59 
    59 
    60         // Legacy anchor dimensions (6290760)
    60         // Legacy anchor dimensions (6290760)
    61         checkOutput("pkg2/A.html", true,
    61         checkOutput("pkg2/A.html", true,
    62                 "<a name=\"f-java.lang.Object:A-\">\n"
    62                 "<a name=\"f-java.lang.Object:A-\">\n"
    63                 + "<!--   -->\n"
    63                 + "<!--   -->\n"