# HG changeset patch # User aivanov # Date 1409665355 -14400 # Node ID e724e32b9c68ec18520a2365b9045d90ba731adb # Parent 95133112b8eb6ba53a90c8122c7f9e02f6decaa8 8056211: api/java_awt/Event/InputMethodEvent/serial/index.html#Input[serial2002] failure Reviewed-by: pchelko, alexsch diff -r 95133112b8eb -r e724e32b9c68 jdk/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java --- a/jdk/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java Tue Sep 02 17:35:58 2014 +0400 +++ b/jdk/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java Tue Sep 02 17:42:35 2014 +0400 @@ -418,7 +418,8 @@ private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException { s.defaultReadObject(); if (when == 0) { - when = getMostRecentEventTimeForSource(this.source); + // Can't use getMostRecentEventTimeForSource because source is always null during deserialization + when = EventQueue.getMostRecentEventTime(); } }