mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-11 23:48:38 +00:00
7080289: AWTKeystroke class registers a subclass factory during deserialization
Reviewed-by: serb
This commit is contained in:
parent
20558b33b9
commit
89371ad57d
@ -777,10 +777,6 @@ public class AWTKeyStroke implements Serializable {
|
||||
*/
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user