JDK-8037423 : @treatAsPrivate should hide the member for sub classes
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2014-03-14
  • Updated: 2018-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_minorUnresolved
Related Reports
Relates :  
Relates :  
Description
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.





Comments
@hidden is not working right, in this case, reopened issue.
31-07-2017

@Kumar, have you tried the given test case?
29-07-2017

have you tried the tag @hidden, that should completely hide everything. Please reopen if the issue persists.
28-07-2017