diff --git a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java index b06dc1560971ac9b8edc79702c2fd19033284f32..d3ea1a5f187c72a9d52a86ca731493eea41fad3e 100644 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java @@ -391,8 +391,7 @@ public class HtmlDocletWriter extends HtmlDocWriter { tbody.addContent(tr); } table.addContent(tbody); - Content li = HtmlTree.LI(HtmlStyle.blockList, table); - summaryContentTree.addContent(li); + summaryContentTree.addContent(table); } } diff --git a/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java b/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java index dea7479619ca53d0d4ecf0c172e5be6d8f59e27f..314e75f8196dfc76a817e192d2d050ddc2e6e40f 100644 --- a/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java +++ b/src/share/classes/com/sun/tools/doclets/formats/html/ProfilePackageWriterImpl.java @@ -175,8 +175,11 @@ public class ProfilePackageWriterImpl extends HtmlDocletWriter */ public void addClassesSummary(ClassDoc[] classes, String label, String tableSummary, String[] tableHeader, Content packageSummaryContentTree) { + HtmlTree li = new HtmlTree(HtmlTag.LI); + li.addStyle(HtmlStyle.blockList); addClassesSummary(classes, label, tableSummary, tableHeader, - packageSummaryContentTree, profileValue); + li, profileValue); + packageSummaryContentTree.addContent(li); } /** diff --git a/test/com/sun/javadoc/testProfiles/TestProfiles.java b/test/com/sun/javadoc/testProfiles/TestProfiles.java index 0dc858dddd643a07d4e7393f817ce69a9a764848..a21a18e40546e73fde1e46745a75c5c5b9c02343 100644 --- a/test/com/sun/javadoc/testProfiles/TestProfiles.java +++ b/test/com/sun/javadoc/testProfiles/TestProfiles.java @@ -23,7 +23,7 @@ /* * @test - * @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 + * @bug 8006124 8009684 8016921 8023700 8024096 8008164 8026567 8026770 * @summary Test javadoc support for profiles. * @author Bhavesh Patel, Evgeniya Stepanova * @library ../lib/ @@ -85,6 +85,20 @@ public class TestProfiles extends JavadocTester { "