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

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

    XMLWordPrintable

    Details

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

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: