提交 b40eddf3 编写于 作者: A aivanov

8056211: api/java_awt/Event/InputMethodEvent/serial/index.html#Input[serial2002] failure

Reviewed-by: pchelko, alexsch
上级 08b53bb0
...@@ -417,7 +417,8 @@ public class InputMethodEvent extends AWTEvent { ...@@ -417,7 +417,8 @@ public class InputMethodEvent extends AWTEvent {
private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException { private void readObject(ObjectInputStream s) throws ClassNotFoundException, IOException {
s.defaultReadObject(); s.defaultReadObject();
if (when == 0) { if (when == 0) {
when = getMostRecentEventTimeForSource(this.source); // Can't use getMostRecentEventTimeForSource because source is always null during deserialization
when = EventQueue.getMostRecentEventTime();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册