changeset 4577:7fd192952459

7080289: AWTKeystroke class registers a subclass factory during deserialization Reviewed-by: serb
author denis
date Mon, 26 Sep 2011 18:18:29 +0400
parents d72ac458b2b7
children aac4041609bb 1be72d104f9b
files src/share/classes/java/awt/AWTKeyStroke.java
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/AWTKeyStroke.java	Mon Sep 26 17:59:52 2011 +0400
+++ b/src/share/classes/java/awt/AWTKeyStroke.java	Mon Sep 26 18:18:29 2011 +0400
@@ -777,10 +777,6 @@
      */
     protected Object readResolve() throws java.io.ObjectStreamException {
         synchronized (AWTKeyStroke.class) {
-            Class newClass = getClass();
-            if (!newClass.equals(ctor.getDeclaringClass())) {
-                registerSubclass(newClass);
-            }
             return getCachedStroke(keyChar, keyCode, modifiers, onKeyRelease);
         }
     }