changeset 4435:6700239b1c19

7080289: java/awt/AWTKeyStroke/AlienClass/Test2.java failed on jdk1.5.0_32b02 but passed on previous build Reviewed-by: art
author denis
date Fri, 14 Oct 2011 15:29:19 +0400
parents 3f5758dbe3e1
children 35a7ac263804
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	Fri Oct 14 15:19:13 2011 +0400
+++ b/src/share/classes/java/awt/AWTKeyStroke.java	Fri Oct 14 15:29:19 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);
         }
     }