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

'javadoc -public' generates 'Overrides' statement for protected method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.8
    • tools



      Name: vi73552 Date: 06/14/99


      This is similar to bug # 4117451.

      I have 2 classes. Class A contains a public method (P) that
      inherits from a protected method (X) in class B. I generate
      javadoc using:
      'javadoc -public -version -sourcepath.....'.

      The javadoc for class B (correctly) does not include the
      protected method X.
      The javadoc for class A documents the public method P as:
       "Overrides:
            method X in class B"
      and provides a link to class B which (as stated above) does NOT
      include documentation for method X.

      This is very confusing for users.
      I suspect that protected methods should not be referred to at all
      if the '-public' option is used.
      (Review ID: 84316)
      ======================================================================

            adambalksunw Atul Dambalkar (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: