Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4456112

stddoclet: javadoc does not document fields/methods for private inner classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0, 1.3.1, 1.4.0
    • tools
    • beta2
    • x86, sparc
    • solaris_2.6, solaris_8, windows_nt, windows_2000
    • Verified



      Name: bsC130419 Date: 05/08/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      Running "javadoc -private Test.java" on the file below (named Test.java) will
      produce a class documentation page (Test.InnerText.html) for the inner class
      Test.InnerText, but the field "myField" and the method "myMethod" will not be
      documented. Only the fields (i.e. none) and methods inherited from
      java.lang.Object will be there. "myField" and "myMethod" will, however, appear
      with correct links in the "index-all.html" page.


      class Test {

      /** This is a private inner class */
      private class InnerText {

      /** This is an inner field */
      public int myField;

      /** This is an inner method */
      public void setField(int value) {
      myField = value;
      }
      }
      }
      (Review ID: 123863)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            bstrathesunw Bill Strathearn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: