<Swing Dev> RFR: 8264218: Public method javax.swing.JMenu.setComponentOrientation() has no spec
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Apr 1 12:52:38 UTC 2021
On Thu, 1 Apr 2021 12:35:21 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> 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)
>
> The method is also present in the Java 8:
> https://docs.oracle.com/javase/8/docs/api/javax/swing/JMenu.html#setComponentOrientation-java.awt.ComponentOrientation-
I guess openjdk shows file history from 7u23 onwards IIRC so not sure why it is showing "Initial load" and not who/what removed it. Maybe the spec wordings actually was not there but some javadoc trickery was adding the javadoc comment in to the spec document seeing it's overidden from JComponent....
I am not sure what needs to be done here...
-------------
PR: https://git.openjdk.java.net/jdk/pull/3213
More information about the swing-dev
mailing list