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

Deprecate AWTKeyStroke.registerSubclass(Class) method

XMLWordPrintable

    • b85

        The AWTKeyStroke.registerSubclass(Class) method was proposed when javax.swing.KeyStroke class was copied to java.awt.AWTKeystoke and it was necessary to create KeyStroke class which has private constructor.

        AWTKeyStroke class is intended to contain keyChar, keyCode, modifiers, and keyRelease flag and it seems there are no reasons that this class can be subclassed.

        The suggestion is to remove or deprecate the AWTKeyStroke.registerSubclass(Class) method.

              alexsch Alexandr Scherbatiy
              alexsch Alexandr Scherbatiy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: