JDK-8264218 : Public method javax.swing.JMenu.setComponentOrientation() has no spec
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 15,16,17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-25
  • Updated: 2021-05-27
  • Resolved: 2021-05-21
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.
JDK 17
17 b24Fixed
Related Reports
CSR :  
Duplicate :  
Relates :  
Description
A public overriding method
JMenu.setComponentOrientation(java.awt.ComponentOrientation) 
that has no spec at all is currently accessible here
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/JMenu.java#L1258
(also please see the attached screenshot.)

And the generated JavaDoc doesn't mention that this method declared in java.awt.Component's is overridden
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/JMenu.html (same for JDK16 and so far JDK17)

Related bug v.s. javadoc - JDK-8264217


Comments
Changeset: e48d7d66 Author: Prasanta Sadhukhan <psadhukhan@openjdk.org> Date: 2021-05-21 09:37:48 +0000 URL: https://git.openjdk.java.net/jdk/commit/e48d7d66582d9c9630d85e86ff344794656914fc
21-05-2021