Public method javax.swing.JMenu.setComponentOrientation() has no spec

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 17
    • Affects Version/s: 15, 16, 17
    • Component/s: client-libs

      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

            Assignee:
            Prasanta Sadhukhan
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: