JDK-8133453 : Deprecate AWTKeyStroke.registerSubclass(Class) method
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-08-12
  • Updated: 2017-05-17
  • Resolved: 2015-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b85Fixed
Related Reports
Relates :  
Relates :  
Description
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.
Comments
The proposed fix is sent to the review: http://mail.openjdk.java.net/pipermail/awt-dev/2015-September/009890.html
01-09-2015