changeset 10658:d2c998b7e553

8056211: api/java_awt/Event/InputMethodEvent/serial/index.html#Input[serial2002] failure Reviewed-by: pchelko, alexsch
author aivanov
date Tue, 02 Sep 2014 17:42:35 +0400
parents 4679a2758059
children 7d8bb8bca0d1
files src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/java/awt/event/InputMethodEvent.java	Tue Sep 02 17:35:58 2014 +0400
+++ b/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();
         }
     }