<AWT Dev> [9] Review request for JDK-8056211: JCK test api/java_awt/Event/InputMethodEvent/serial fails

Alexey Ivanov alexey.ivanov at oracle.com
Fri Aug 29 08:20:00 UTC 2014

Hello AWT Team,

Could you please review the fix for bug:
     bug: https://bugs.openjdk.java.net/browse/JDK-8056211
     webrev: http://cr.openjdk.java.net/~aivanov/8056211/jdk9/webrev.00/

When you deserialize InputMethodEvent object serialized with JDK 1.3 or 
earlier, you'll get java.lang.IllegalArgumentException: null source. To 
initialize 'when' field, getMostRecentEventTimeForSource is used in this 
case but 'source' field is always null when object is deserialized.

The fix:
Use the old way to initialize 'when' field where its value is 0, that is 

Thank you in advance,

More information about the awt-dev mailing list