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

@treatAsPrivate should hide the member for sub classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • tools
    • None

      Take a simple case
      class Node() {
      /** @treatAsPrivate */
      public void impl_hideme() {}
      }
      class Button extends Node {
      @Override
      public void impl_hideme() {}
      }
      }

      Generate the JavaDoc for that.
      impl_hideme will not be visible for Node, but it will be there for Button.
      Which could have been okay, excepted the javadoc for Button#impl_hideme shows
      Overrides:
      impl_hideme in class Node

      Which is a broken link.
      personally I would think that treatAsPrivate should hide for sub classes, but I can see someone who wants to hide the super class and show in the sub classes.




            Unassigned Unassigned
            fheidric Felipe Heidrich (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: