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

More Swing plaf APIs that rely on default constructors

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 16
    • Fix Version/s: 16
    • Component/s: client-libs

      Description

      The following are mostly nested classes identified by new tooling : https://bugs.openjdk.java.net/browse/JDK-8251921
      Although there are some top-level classes that must have been dropped by accident last time round :

      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableHeaderUI.java:44: warning: [missing-explicit-ctor] class BasicTableHeaderUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableHeaderUI.java:102: warning: [missing-explicit-ctor] class BasicTableHeaderUI.MouseInputHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java:1374: warning: [missing-explicit-ctor] class BasicCaret
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java:1379: warning: [missing-explicit-ctor] class BasicHighlighter
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java:1178: warning: [missing-explicit-ctor] class BasicScrollBarUI.ModelListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java:1192: warning: [missing-explicit-ctor] class BasicScrollBarUI.TrackListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollBarUI.java:1494: warning: [missing-explicit-ctor] class BasicScrollBarUI.ArrowButtonListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java:619: warning: [missing-explicit-ctor] class BasicScrollPaneUI.MouseWheelHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java:755: warning: [missing-explicit-ctor] class BasicFileChooserUI.SelectionListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java:1327: warning: [missing-explicit-ctor] class BasicFileChooserUI.CancelSelectionAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java:1338: warning: [missing-explicit-ctor] class BasicFileChooserUI.UpdateAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicButtonUI.java:51: warning: [missing-explicit-ctor] class BasicButtonUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuItemUI.java:925: warning: [missing-explicit-ctor] class BasicMenuItemUI.MouseInputHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java:40: warning: [missing-explicit-ctor] class BasicCheckBoxMenuItemUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToggleButtonUI.java:45: warning: [missing-explicit-ctor] class BasicToggleButtonUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:64: warning: [missing-explicit-ctor] class BasicComboBoxUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:594: warning: [missing-explicit-ctor] class BasicComboBoxUI.KeyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:609: warning: [missing-explicit-ctor] class BasicComboBoxUI.FocusHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:629: warning: [missing-explicit-ctor] class BasicComboBoxUI.ListDataHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:653: warning: [missing-explicit-ctor] class BasicComboBoxUI.ItemHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:672: warning: [missing-explicit-ctor] class BasicComboBoxUI.PropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java:699: warning: [missing-explicit-ctor] class BasicComboBoxUI.ComboBoxLayoutManager
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:735: warning: [missing-explicit-ctor] class BasicComboPopup.InvocationMouseHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:760: warning: [missing-explicit-ctor] class BasicComboPopup.InvocationMouseMotionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:773: warning: [missing-explicit-ctor] class BasicComboPopup.InvocationKeyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:782: warning: [missing-explicit-ctor] class BasicComboPopup.ListSelectionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:795: warning: [missing-explicit-ctor] class BasicComboPopup.ListDataHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:808: warning: [missing-explicit-ctor] class BasicComboPopup.ListMouseHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:820: warning: [missing-explicit-ctor] class BasicComboPopup.ListMouseMotionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:830: warning: [missing-explicit-ctor] class BasicComboPopup.ItemHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java:846: warning: [missing-explicit-ctor] class BasicComboPopup.PropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopIconUI.java:238: warning: [missing-explicit-ctor] class BasicDesktopIconUI.MouseInputHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:725: warning: [missing-explicit-ctor] class BasicInternalFrameTitlePane.PropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:739: warning: [missing-explicit-ctor] class BasicInternalFrameTitlePane.TitlePaneLayout
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java:932: warning: [missing-explicit-ctor] class BasicInternalFrameTitlePane.SystemMenuBar
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java:680: warning: [missing-explicit-ctor] class BasicDesktopPaneUI.OpenAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java:695: warning: [missing-explicit-ctor] class BasicDesktopPaneUI.CloseAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java:714: warning: [missing-explicit-ctor] class BasicDesktopPaneUI.MinimizeAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java:733: warning: [missing-explicit-ctor] class BasicDesktopPaneUI.MaximizeAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDesktopPaneUI.java:752: warning: [missing-explicit-ctor] class BasicDesktopPaneUI.NavigateAction
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:643: warning: [missing-explicit-ctor] class BasicInternalFrameUI.InternalFramePropertyChangeListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:661: warning: [missing-explicit-ctor] class BasicInternalFrameUI.InternalFrameLayout
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:830: warning: [missing-explicit-ctor] class BasicInternalFrameUI.BorderListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:1303: warning: [missing-explicit-ctor] class BasicInternalFrameUI.ComponentHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:1345: warning: [missing-explicit-ctor] class BasicInternalFrameUI.GlassPaneDispatcher
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameUI.java:1411: warning: [missing-explicit-ctor] class BasicInternalFrameUI.BasicInternalFrameListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuUI.java:367: warning: [missing-explicit-ctor] class BasicMenuUI.MouseInputHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java:552: warning: [missing-explicit-ctor] class BasicSplitPaneDivider.MouseHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java:956: warning: [missing-explicit-ctor] class BasicSplitPaneDivider.DividerLayout
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java:715: warning: [missing-explicit-ctor] class BasicSplitPaneUI.PropertyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java:767: warning: [missing-explicit-ctor] class BasicSplitPaneUI.KeyboardUpLeftHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java:862: warning: [missing-explicit-ctor] class BasicSplitPaneUI.KeyboardResizeToggleHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:54: warning: [missing-explicit-ctor] class BasicTabbedPaneUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:2659: warning: [missing-explicit-ctor] class BasicTabbedPaneUI.TabbedPaneLayout
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:4197: warning: [missing-explicit-ctor] class BasicTabbedPaneUI.PropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:4211: warning: [missing-explicit-ctor] class BasicTabbedPaneUI.TabSelectionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:4225: warning: [missing-explicit-ctor] class BasicTabbedPaneUI.MouseHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java:4239: warning: [missing-explicit-ctor] class BasicTabbedPaneUI.FocusHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:2901: warning: [missing-explicit-ctor] class BasicTreeUI.TreeExpansionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:2926: warning: [missing-explicit-ctor] class BasicTreeUI.ComponentHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3004: warning: [missing-explicit-ctor] class BasicTreeUI.TreeModelHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3033: warning: [missing-explicit-ctor] class BasicTreeUI.TreeSelectionHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3054: warning: [missing-explicit-ctor] class BasicTreeUI.CellEditorHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3077: warning: [missing-explicit-ctor] class BasicTreeUI.KeyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3120: warning: [missing-explicit-ctor] class BasicTreeUI.FocusHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3150: warning: [missing-explicit-ctor] class BasicTreeUI.NodeDimensionsHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3225: warning: [missing-explicit-ctor] class BasicTreeUI.MouseHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3262: warning: [missing-explicit-ctor] class BasicTreeUI.PropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java:3280: warning: [missing-explicit-ctor] class BasicTreeUI.SelectionModelPropertyChangeHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicBorders.java:48: warning: [missing-explicit-ctor] class BasicBorders
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicBorders.java:475: warning: [missing-explicit-ctor] class MarginBorder
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicCheckBoxUI.java:53: warning: [missing-explicit-ctor] class BasicCheckBoxUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java:47: warning: [missing-explicit-ctor] class BasicColorChooserUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicColorChooserUI.java:385: warning: [missing-explicit-ctor] class BasicColorChooserUI.PropertyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxEditor.java:177: warning: [missing-explicit-ctor] class UIResource
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboBoxRenderer.java:147: warning: [missing-explicit-ctor] class UIResource
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFormattedTextFieldUI.java:36: warning: [missing-explicit-ctor] class BasicFormattedTextFieldUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicGraphicsUtils.java:48: warning: [missing-explicit-ctor] class BasicGraphicsUtils
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicHTML.java:47: warning: [missing-explicit-ctor] class BasicHTML
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicIconFactory.java:53: warning: [missing-explicit-ctor] class BasicIconFactory
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java:57: warning: [missing-explicit-ctor] class BasicTableUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java:758: warning: [missing-explicit-ctor] class BasicTableUI.KeyHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java:784: warning: [missing-explicit-ctor] class BasicTableUI.FocusHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTableUI.java:806: warning: [missing-explicit-ctor] class BasicTableUI.MouseInputHandler
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarSeparatorUI.java:46: warning: [missing-explicit-ctor] class BasicToolBarSeparatorUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java:51: warning: [missing-explicit-ctor] class BasicToolBarUI
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java:1410: warning: [missing-explicit-ctor] class BasicToolBarUI.FrameListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java:1448: warning: [missing-explicit-ctor] class BasicToolBarUI.ToolBarContListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java:1466: warning: [missing-explicit-ctor] class BasicToolBarUI.ToolBarFocusListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java:1483: warning: [missing-explicit-ctor] class BasicToolBarUI.PropertyListener
      src/java.desktop/share/classes/javax/swing/plaf/basic/BasicViewportUI.java:41: warning: [missing-explicit-ctor] class BasicViewportUI
      src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java:588: warning: [missing-explicit-ctor] class MetalFileChooserUI.FileRenderer
      src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSliderUI.java:182: warning: [missing-explicit-ctor] class MetalSliderUI.MetalPropertyListener
      src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java:56: warning: [missing-explicit-ctor] class MetalToolBarUI
      src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java:363: warning: [missing-explicit-ctor] class MetalToolBarUI.MetalContainerListener
      src/java.desktop/share/classes/javax/swing/plaf/metal/MetalToolBarUI.java:369: warning: [missing-explicit-ctor] class MetalToolBarUI.MetalRolloverListener

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: