<Swing Dev> RFR: 8264218: Public method javax.swing.JMenu.setComponentOrientation() has no spec
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Apr 1 11:30:20 UTC 2021
On Sat, 27 Mar 2021 01:20:45 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> A public overriding method JMenu.setComponentOrientation(java.awt.ComponentOrientation)
>> has no spec.
>> Added spec for the method.
>
> Looks like the JavaDoc bug, the spec was there in jdk7:
> https://docs.oracle.com/javase/7/docs/api/javax/swing/JMenu.html#setComponentOrientation(java.awt.ComponentOrientation)
I could not see the spec in the last 14 years openjdk history of this file. Shouldn't we need to add the spec even if it's javadoc bug?
Instead of blindly copying JComponent setComponentOrientation spec as was done in jdk7 in above link, I have added a concise javadoc (same as is seen in JScrollPane#setComponentOrientation)
-------------
PR: https://git.openjdk.java.net/jdk/pull/3213
More information about the swing-dev
mailing list