From b40eddf336dd68e07922c238a301469b5ab99323 Mon Sep 17 00:00:00 2001 From: aivanov Date: Thu, 4 Sep 2014 19:07:29 +0400 Subject: [PATCH] 8056211: api/java_awt/Event/InputMethodEvent/serial/index.html#Input[serial2002] failure Reviewed-by: pchelko, alexsch --- src/share/classes/java/awt/event/InputMethodEvent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/share/classes/java/awt/event/InputMethodEvent.java b/src/share/classes/java/awt/event/InputMethodEvent.java index cd7122d52..d90e5ec5c 100644 --- a/src/share/classes/java/awt/event/InputMethodEvent.java +++ b/src/share/classes/java/awt/event/InputMethodEvent.java @@ -417,7 +417,8 @@ public class InputMethodEvent extends AWTEvent { 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(); } } -- GitLab