diff -r e6c5b5ee9fac -r ce4f0769b4b2 src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Tue May 14 10:14:53 2013 -0700 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java Tue May 14 10:14:53 2013 -0700 @@ -1049,6 +1049,17 @@ * @param label the label for the link. * @return a content tree for the package link. */ + public Content getPackageLink(PackageDoc pkg, String label) { + return getPackageLink(pkg, new StringContent(label)); + } + + /** + * Return the link to the given package. + * + * @param pkg the package to link to. + * @param label the label for the link. + * @return a content tree for the package link. + */ public Content getPackageLink(PackageDoc pkg, Content label) { boolean included = pkg != null && pkg.isIncluded(); if (! included) {