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

Nested classes in Swing APIs rely on default constructors

    XMLWordPrintable

    Details

      Description

      A follow on to previous bugs of this kind, improved tooling ( see https://bugs.openjdk.java.net/browse/JDK-8251921) has identified
      nested classes that were previously missed

      src/java.desktop/share/classes/javax/swing/JComponent.java:3711: warning: [missing-explicit-ctor] class JComponent.AccessibleJComponent.AccessibleContainerHandler
      src/java.desktop/share/classes/javax/swing/JComponent.java:3740: warning: [missing-explicit-ctor] class JComponent.AccessibleJComponent.AccessibleFocusHandler
      src/java.desktop/share/classes/javax/swing/JPanel.java:234: warning: [missing-explicit-ctor] class JPanel.AccessibleJPanel
      src/java.desktop/share/classes/javax/swing/JTextField.java:951: warning: [missing-explicit-ctor] class JTextField.AccessibleJTextField
      src/java.desktop/share/classes/javax/swing/JMenuBar.java:510: warning: [missing-explicit-ctor] class JMenuBar.AccessibleJMenuBar
      src/java.desktop/share/classes/javax/swing/AbstractButton.java:2355: warning: [missing-explicit-ctor] class AbstractButton.AccessibleAbstractButton
      src/java.desktop/share/classes/javax/swing/JMenu.java:1395: warning: [missing-explicit-ctor] class JMenu.AccessibleJMenu
      src/java.desktop/share/classes/javax/swing/JSeparator.java:278: warning: [missing-explicit-ctor] class JSeparator.AccessibleJSeparator
      src/java.desktop/share/classes/javax/swing/JWindow.java:655: warning: [missing-explicit-ctor] class JWindow.AccessibleJWindow
      src/java.desktop/share/classes/javax/swing/JToolTip.java:262: warning: [missing-explicit-ctor] class JToolTip.AccessibleJToolTip
      src/java.desktop/share/classes/javax/swing/JRootPane.java:848: warning: [missing-explicit-ctor] class JRootPane.RootLayout
      src/java.desktop/share/classes/javax/swing/JRootPane.java:1014: warning: [missing-explicit-ctor] class JRootPane.AccessibleJRootPane
      src/java.desktop/share/classes/javax/swing/JLayeredPane.java:767: warning: [missing-explicit-ctor] class JLayeredPane.AccessibleJLayeredPane
      src/java.desktop/share/classes/javax/swing/JButton.java:302: warning: [missing-explicit-ctor] class JButton.AccessibleJButton
      src/java.desktop/share/classes/javax/swing/JLabel.java:1043: warning: [missing-explicit-ctor] class JLabel.AccessibleJLabel
      src/java.desktop/share/classes/javax/swing/JCheckBox.java:333: warning: [missing-explicit-ctor] class JCheckBox.AccessibleJCheckBox
      src/java.desktop/share/classes/javax/swing/DefaultCellEditor.java:301: warning: [missing-explicit-ctor] class DefaultCellEditor.EditorDelegate
      src/java.desktop/share/classes/javax/swing/JEditorPane.java:1660: warning: [missing-explicit-ctor] class JEditorPane.AccessibleJEditorPane
      src/java.desktop/share/classes/javax/swing/table/JTableHeader.java:809: warning: [missing-explicit-ctor] class JTableHeader.AccessibleJTableHeader
      src/java.desktop/share/classes/javax/swing/JScrollBar.java:855: warning: [missing-explicit-ctor] class JScrollBar.AccessibleJScrollBar
      src/java.desktop/share/classes/javax/swing/JViewport.java:1406: warning: [missing-explicit-ctor] class JViewport.ViewListener
      src/java.desktop/share/classes/javax/swing/JViewport.java:1877: warning: [missing-explicit-ctor] class JViewport.AccessibleJViewport
      src/java.desktop/share/classes/javax/swing/JFrame.java:883: warning: [missing-explicit-ctor] class JFrame.AccessibleJFrame
      src/java.desktop/share/classes/javax/swing/JTextArea.java:784: warning: [missing-explicit-ctor] class JTextArea.AccessibleJTextArea
      src/java.desktop/share/classes/javax/swing/JPasswordField.java:407: warning: [missing-explicit-ctor] class JPasswordField.AccessibleJPasswordField
      src/java.desktop/share/classes/javax/swing/JColorChooser.java:600: warning: [missing-explicit-ctor] class JColorChooser.AccessibleJColorChooser
      src/java.desktop/share/classes/javax/swing/JDialog.java:1239: warning: [missing-explicit-ctor] class JDialog.AccessibleJDialog
      src/java.desktop/share/classes/javax/swing/JFileChooser.java:2042: warning: [missing-explicit-ctor] class JFileChooser.AccessibleJFileChooser
      src/java.desktop/share/classes/javax/swing/JInternalFrame.java:2011: warning: [missing-explicit-ctor] class JInternalFrame.AccessibleJInternalFrame
      src/java.desktop/share/classes/javax/swing/JInternalFrame.java:2302: warning: [missing-explicit-ctor] class JDesktopIcon.AccessibleJDesktopIcon
      src/java.desktop/share/classes/javax/swing/JDesktopPane.java:628: warning: [missing-explicit-ctor] class JDesktopPane.AccessibleJDesktopPane
      src/java.desktop/share/classes/javax/swing/CellRendererPane.java:246: warning: [missing-explicit-ctor] class CellRendererPane.AccessibleCellRendererPane
      src/java.desktop/share/classes/javax/swing/JOptionPane.java:2548: warning: [missing-explicit-ctor] class JOptionPane.AccessibleJOptionPane
      src/java.desktop/share/classes/javax/swing/JProgressBar.java:1011: warning: [missing-explicit-ctor] class JProgressBar.AccessibleJProgressBar
      src/java.desktop/share/classes/javax/swing/JSplitPane.java:1136: warning: [missing-explicit-ctor] class JSplitPane.AccessibleJSplitPane
      src/java.desktop/share/classes/javax/swing/JTabbedPane.java:291: warning: [missing-explicit-ctor] class JTabbedPane.ModelListener
      src/java.desktop/share/classes/javax/swing/JTree.java:3320: warning: [missing-explicit-ctor] class EmptySelectionModel
      src/java.desktop/share/classes/javax/swing/JTree.java:3442: warning: [missing-explicit-ctor] class JTree.TreeSelectionRedirector
      src/java.desktop/share/classes/javax/swing/JTree.java:3865: warning: [missing-explicit-ctor] class JTree.TreeModelHandler
      src/java.desktop/share/classes/javax/swing/Box.java:385: warning: [missing-explicit-ctor] class Filler.AccessibleBoxFiller
      src/java.desktop/share/classes/javax/swing/Box.java:427: warning: [missing-explicit-ctor] class Box.AccessibleBox
      src/java.desktop/share/classes/javax/swing/ImageIcon.java:596: warning: [missing-explicit-ctor] class ImageIcon.AccessibleImageIcon
      src/java.desktop/share/classes/javax/swing/JApplet.java:568: warning: [missing-explicit-ctor] class JApplet.AccessibleJApplet
      src/java.desktop/share/classes/javax/swing/JCheckBoxMenuItem.java:306: warning: [missing-explicit-ctor] class JCheckBoxMenuItem.AccessibleJCheckBoxMenuItem
      src/java.desktop/share/classes/javax/swing/JRadioButton.java:286: warning: [missing-explicit-ctor] class JRadioButton.AccessibleJRadioButton
      src/java.desktop/share/classes/javax/swing/JRadioButtonMenuItem.java:280: warning: [missing-explicit-ctor] class JRadioButtonMenuItem.AccessibleJRadioButtonMenuItem
      src/java.desktop/share/classes/javax/swing/JToolBar.java:832: warning: [missing-explicit-ctor] class JToolBar.AccessibleJToolBar
      src/java.desktop/share/classes/javax/swing/ToolTipManager.java:679: warning: [missing-explicit-ctor] class ToolTipManager.insideTimerAction
      src/java.desktop/share/classes/javax/swing/ToolTipManager.java:709: warning: [missing-explicit-ctor] class ToolTipManager.outsideTimerAction
      src/java.desktop/share/classes/javax/swing/ToolTipManager.java:721: warning: [missing-explicit-ctor] class ToolTipManager.stillInsideTimerAction
      src/java.desktop/share/classes/javax/swing/text/html/FormView.java:553: warning: [missing-explicit-ctor] class FormView.MouseEventListener

        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: