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

changeset 405
ebb6ad5a95bb
parent 244
b000f7c728ae
child 554
9d9f26857129
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Tue Sep 08 11:43:57 2009 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Tue Sep 08 13:53:10 2009 -0700
     1.3 @@ -1435,7 +1435,17 @@
     1.4                  // documented, this must be an inherited link.  Redirect it.
     1.5                  // The current class either overrides the referenced member or
     1.6                  // inherits it automatically.
     1.7 -                containing = ((ClassWriterImpl) this).getClassDoc();
     1.8 +                if (this instanceof ClassWriterImpl) {
     1.9 +                    containing = ((ClassWriterImpl) this).getClassDoc();
    1.10 +                } else if (!containing.isPublic()){
    1.11 +                    configuration.getDocletSpecificMsg().warning(
    1.12 +                        see.position(), "doclet.see.class_or_package_not_accessible",
    1.13 +                        tagName, containing.qualifiedName());
    1.14 +                } else {
    1.15 +                    configuration.getDocletSpecificMsg().warning(
    1.16 +                        see.position(), "doclet.see.class_or_package_not_found",
    1.17 +                        tagName, seetext);
    1.18 +                }
    1.19              }
    1.20              if (configuration.currentcd != containing) {
    1.21                  refMemName = containing.name() + "." + refMemName;

mercurial