<Swing Dev> RFR: 8264218: Public method javax.swing.JMenu.setComponentOrientation() has no spec [v5]
Alexey Ivanov
aivanov at openjdk.java.net
Wed Apr 7 20:37:36 UTC 2021
On Wed, 7 Apr 2021 20:06:46 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> > I dont see any update in JDK-8264217. Is this then considered to be a javadoc bug?
>
> It does not matter is it a JavaDoc bug or feature. If it is a bug it will be fixed and spec will be returned for the current method. If it is an intentional feature to skip the identical comments in the subclasses then the spec in the current method will be intentionally skipped.
Then this bug is not an issue, right?
Unless we want to document that `JMenu.setComponentOrientation` _also sets_ the orientation to _`popupMenu`_, which doesn't change the orientation of menu items the `popupMenu` contains. However, it aligns with the specification: use `applyComponentOrientation` to change the orientation of the components contained within.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3213
More information about the swing-dev
mailing list