JDK-6626492 : Event time in future part 2, now on X
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,8u45
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2007-11-06
  • Updated: 2023-10-09
  • Resolved: 2022-04-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b19Fixed
Related Reports
Relates :  
Description
With XToolkit, event time sometimes is set to few miliseconds ahead of current system time. This can be seen by running regression tests:
  test/java/awt/event/MouseEvent/EventTimeInFuture/EventTimeInFuture.java
  test/java/awt/event/KeyEvent/CorrectTime/CorrectTime.java
They fail with XToolkit on most of the attempts (on both Solaris and Linux).

Comments
Changeset: 23c6817c Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2022-04-14 07:53:41 +0000 URL: https://git.openjdk.java.net/jdk/commit/23c6817c1a3c05b9db05155952c40f1543b99077
14-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8232 Date: 2022-04-13 20:51:41 +0000
13-04-2022

Test java/awt/event/KeyEvent/CorrectTime/CorrectTime.java fails on Linux for 8u51b09 RULE java/awt/event/KeyEvent/CorrectTime/CorrectTime.java Exception java.lang.RuntimeException: Focus didn't come to java.awt.TextField[textfield0,147,99,9...,text=press keys,editable,selection=0-0] ----------System.out:(2/166)---------- The test failed: Focus didn't come to java.awt.TextField[textfield0,147,99,90x31,text=press keys,editable,selection=0-0] The test is over, hit Ctl-C to stop Java VM ----------System.err:(15/1087)---------- java.lang.RuntimeException: Focus didn't come to java.awt.TextField[textfield0,147,99,90x31,text=press keys,editable,selection=0-0] at test.java.awt.regtesthelpers.AbstractTest.fail(AbstractTest.java:60) at CorrectTime.testComponent(CorrectTime.java:96) at CorrectTime.main(CorrectTime.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:745) JavaTest Message: Test threw exception: java.lang.RuntimeException: Focus didn't come to java.awt.TextField[textfield0,147,99,90x31,text=press keys,editable,selection=0-0] JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Focus didn't come to java.awt.TextField[textfield0,147,99,90x31,text=press keys,editable,selection=0-0] http://aurora-ds3.us.oracle.com:9502/runs/785552.ManualSubmit-1/workDir/java/awt/event/KeyEvent/CorrectTime/CorrectTime.jtr
22-04-2015

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

EVALUATION Those regression tests (see description) are for the fix of 6451578, which corrected "event time in future" problem for Windows. Same time conversion code for X looks similar to code for Windows before that fix. So, code for X needs to be similarly corrected.
06-11-2007