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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 15, 16, 17
    • client-libs

    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

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

              Dates

                Created:
                Updated:
                Resolved: