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

Reviewed-by: pchelko, alexsch
This commit is contained in:
Alexey Ivanov 2014-09-02 17:42:35 +04:00
parent 1a77a29985
commit 127abcdf4d

View File

@ -418,7 +418,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();
}
}