Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264218

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 15, 16, 17
    • 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

            psadhukhan Prasanta Sadhukhan
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: