1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Fri May 03 15:08:47 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Fri May 03 17:44:38 2013 -0700 1.3 @@ -1497,7 +1497,7 @@ 1.4 * @param htmltree the content tree to which the comment will be added 1.5 */ 1.6 public void addInlineComment(Doc doc, Tag tag, Content htmltree) { 1.7 - addCommentTags(doc, tag.inlineTags(), false, false, htmltree); 1.8 + addCommentTags(doc, tag, tag.inlineTags(), false, false, htmltree); 1.9 } 1.10 1.11 /** 1.12 @@ -1557,11 +1557,26 @@ 1.13 */ 1.14 private void addCommentTags(Doc doc, Tag[] tags, boolean depr, 1.15 boolean first, Content htmltree) { 1.16 + addCommentTags(doc, null, tags, depr, first, htmltree); 1.17 + } 1.18 + 1.19 + /** 1.20 + * Adds the comment tags. 1.21 + * 1.22 + * @param doc the doc for which the comment tags will be generated 1.23 + * @param holderTag the block tag context for the inline tags 1.24 + * @param tags the first sentence tags for the doc 1.25 + * @param depr true if it is deprecated 1.26 + * @param first true if the first sentence tags should be added 1.27 + * @param htmltree the documentation tree to which the comment tags will be added 1.28 + */ 1.29 + private void addCommentTags(Doc doc, Tag holderTag, Tag[] tags, boolean depr, 1.30 + boolean first, Content htmltree) { 1.31 if(configuration.nocomment){ 1.32 return; 1.33 } 1.34 Content div; 1.35 - Content result = new RawHtml(commentTagsToString(null, doc, tags, first)); 1.36 + Content result = new RawHtml(commentTagsToString(holderTag, doc, tags, first)); 1.37 if (depr) { 1.38 Content italic = HtmlTree.I(result); 1.39 div = HtmlTree.DIV(HtmlStyle.block, italic);