On Thu, 1 Apr 2021 11:26:55 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> 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) 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- ------------- PR: https://git.openjdk.java.net/jdk/pull/3213