changeset 7784:d425e2aa1a6b jdk7u67-b34

8056211: api/java_awt/Event/InputMethodEvent/serial/index.html#Input[serial2002] failure Reviewed-by: pchelko, alexsch
author aivanov
date Thu, 04 Sep 2014 19:16:55 +0400
parents eda24531237d
children 7a1cab2d30f6
files src/share/classes/java/awt/event/InputMethodEvent.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/awt/event/InputMethodEvent.java	Tue Sep 09 13:20:14 2014 -0700
+++ b/src/share/classes/java/awt/event/InputMethodEvent.java	Thu Sep 04 19:16:55 2014 +0400
@@ -417,7 +417,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();
         }
     }