# HG changeset patch # User denis # Date 1317046709 -14400 # Node ID 012dafac5b621d11df54637663fd3b7b582fa0c3 # Parent 8bb208d39fb16b4ec763649601135a56083b01db 7080289: AWTKeystroke class registers a subclass factory during deserialization Reviewed-by: serb diff -r 8bb208d39fb1 -r 012dafac5b62 jdk/src/share/classes/java/awt/AWTKeyStroke.java --- a/jdk/src/share/classes/java/awt/AWTKeyStroke.java Mon Sep 26 17:59:52 2011 +0400 +++ b/jdk/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); } }