src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java

changeset 405
ebb6ad5a95bb
parent 244
b000f7c728ae
child 554
9d9f26857129
equal deleted inserted replaced
402:261c54b2312e 405:ebb6ad5a95bb
1433 Util.isLinkable(containing, configuration()))) { 1433 Util.isLinkable(containing, configuration()))) {
1434 // Since the link is relative and the holder is not even being 1434 // Since the link is relative and the holder is not even being
1435 // documented, this must be an inherited link. Redirect it. 1435 // documented, this must be an inherited link. Redirect it.
1436 // The current class either overrides the referenced member or 1436 // The current class either overrides the referenced member or
1437 // inherits it automatically. 1437 // inherits it automatically.
1438 containing = ((ClassWriterImpl) this).getClassDoc(); 1438 if (this instanceof ClassWriterImpl) {
1439 containing = ((ClassWriterImpl) this).getClassDoc();
1440 } else if (!containing.isPublic()){
1441 configuration.getDocletSpecificMsg().warning(
1442 see.position(), "doclet.see.class_or_package_not_accessible",
1443 tagName, containing.qualifiedName());
1444 } else {
1445 configuration.getDocletSpecificMsg().warning(
1446 see.position(), "doclet.see.class_or_package_not_found",
1447 tagName, seetext);
1448 }
1439 } 1449 }
1440 if (configuration.currentcd != containing) { 1450 if (configuration.currentcd != containing) {
1441 refMemName = containing.name() + "." + refMemName; 1451 refMemName = containing.name() + "." + refMemName;
1442 } 1452 }
1443 if (refMem instanceof ExecutableMemberDoc) { 1453 if (refMem instanceof ExecutableMemberDoc) {

mercurial