JDK-8047703 : [TEST BUG] Tests use delays instead of synchronization
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,11,12
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-06-20
  • Updated: 2023-10-09
  • Resolved: 2019-05-20
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.
Other
tbdResolved
Related Reports
Duplicate :  
Description
Tests use delays instead of synchronization. So they fail from time to times.

closed/java/awt/Choice/ChoiceGeneratesItemEvents/ChoiceGeneratesItemEvents.html
closed/java/awt/Choice/IconifyClosesChoice/IconifyClosesChoice.html
closed/java/awt/Choice/RemoveAllShrinkTest/RemoveAllShrinkTest.html
closed/java/awt/Choice/SelectBetweenPressRelease/SelectBetweenPressRelease.html
Comments
Test build: JDK11b23(CC-build(http://slc07hab.us.oracle.com/jdk_coverage/builds/11_23/jdk-11-instr_linux-x64_bin.tar.gz )) Platform :ubuntu18.04-x64 Jtreg tool: Jtreg4.2b13 The case failed as the same issue: java/awt/Choice/ChoiceHandleMouseEvent_2/ChoiceHandleMouseEvent_2.html http://sc11152645.us.oracle.com:8080/evergreen/results/11/b23/regression-cc/automated/ubuntu18.04-x64/results_closed/workDir/java/awt/Choice/ChoiceHandleMouseEvent_2/ChoiceHandleMouseEvent_2.jtr java/awt/Window/DualHeadTest/DualHeadTest.html http://sc11152645.us.oracle.com:8080/evergreen/results/11/b23/regression-cc/automated/ubuntu18.04-x64/results_closed/workDir/java/awt/Window/DualHeadTest/DualHeadTest.jtr
09-08-2018

The bug is assumed to be fixed shortly, not to be an umbrella for aurora.
29-04-2015

RULE closed/java/awt/Choice/ChoiceStaysOpenedOnTAB/ChoiceStaysOpenedOnTAB Exception java.lang.RuntimeException: Test failed. Exception thrown: java.lang.RuntimeException: Choice has no focus after pressing TAB/Shitf+TAB16:...:false
22-04-2015

RULE closed/java/awt/Choice/SelectBetweenPressRelease/SelectBetweenPressRelease Exception java.lang.RuntimeException: Test failed. ch.getSelectedIndex() = ...
21-04-2015

RULE closed/sun/java2d/OpenGL/XORPaint.java Exception java.lang.RuntimeException: Failed: Incorrect color for background(expected: ffffffff actual: ff000000)
02-02-2015

RULE closed/sun/java2d/DirectX/D3dTranslucency.java Exception java.lang.Error: Failed: Incorrect color in window: Expected pixel: ffff0000 Pixel found at (...,0): ff000000 RULE closed/sun/java2d/OpenGL/DrawImageBg.java Exception java.lang.RuntimeException: Failed: Incorrect color for outer pixel RULE closed/sun/java2d/OpenGL/OpaqueDest.java Exception java.lang.RuntimeException: Test failed at x=10 y=10 (expected=ffff0000 actual=ff000000) RULE closed/sun/java2d/OpenGL/VolatileSubRegion.java Exception java.lang.RuntimeException: Failed: Incorrect color for red region RULE closed/sun/java2d/OpenGL/XORPaint.java Exception java.lang.RuntimeException: Failed: Incorrect color for solid rect (non-AA)(expected: ff0000ff actual: ffffffff) RULE closed/sun/java2d/doubleBuffering/DDrawD3DClash/DDrawBltTest.java Exception java.lang.Error: Failed: Incorrect color in window
02-02-2015

RULE closed/sun/awt/x11/XDraw/XDrawRRTest.java Exception java.lang.RuntimeException: RoundRectangle is wrong
02-02-2015

RULE closed/java/awt/dnd/DragExitBeforeDropTest/DragExitBeforeDropTest Exception java.lang.ClassCastException: java.lang.String cannot be cast to java.awt.Component RULE closed/java/awt/dnd/DropTargetInInternalFrameTest/DropTargetInInternalFrameTest Exception java.lang.RuntimeException: DropTargetListener.drop() not called.
02-02-2015

RULE closed/java/awt/Cursor/CursorHotspotTest/CursorHotspotTest.java Exception java.lang.RuntimeException: Fail: did not throw IndexOutOfBoundsException RULE closed/java/awt/Cursor/SingleColorCursorTest/SingleColorCursorTest Exception java.lang.IllegalArgumentException: Width (...) and height (...) must be non-zero RULE closed/java/awt/Focus/6382144/EndlessLoopTest.java Exception java.lang.RuntimeException: t1 is not a focus owner RULE closed/java/awt/Focus/DisposedWindow/DisposedWindow.java Exception java.lang.RuntimeException: Test failed. RULE closed/java/awt/MenuBar/MenuBarKeyHandling/MenuBarKeyHandling.java Exception java.lang.RuntimeException: Probable cause : incorrect ESC handling
02-02-2015

RULE closed/java/awt/Focus/ModalExcludedWindowClickTest/ModalExcludedWindowClickTest Exception java.lang.RuntimeException: Test failed! RULE closed/java/awt/PopupMenu/PopupMenuKeyHandling/PopupMenuKeyHandling.java Exception java.lang.RuntimeException: Probable cause : Incorrect checkbox menu item handling RULE closed/java/awt/PopupMenu/PopupMenuStayOpen/PopupMenuStayOpen Exception java.lang.RuntimeException: Popup not visiible or has no focus RULE closed/java/awt/Window/Grab/Test.java Exception java.lang.RuntimeException: Button can not be pressed RULE closed/java/awt/Window/Grab/Test.java Exception java.lang.RuntimeException: Exception in the test:java.lang.RuntimeException: Button can not be pressed
02-02-2015

RULE closed/java/awt/Clipboard/AppletReloadStressClipboardTest/AppletReloadStressClipboardTest Exception java.lang.RuntimeException: Clipboard contents=TEXT RULE closed/java/awt/Focus/RequestOnCompWithNullParent/RequestOnCompWithNullParent.java Exception java.lang.RuntimeException: exception thrown: java.lang.RuntimeException: mayRequestFocusOnOther != true RULE closed/java/awt/Window/DualHeadTest/DualHeadTest Exception java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location RULE closed/java/awt/dnd/DropTargetingTest/DropTargetingTest Exception java.lang.RuntimeException: Failed to recognize drop on a glass pane
02-02-2015

closed/java/awt/event/KeyEvent/KeyTyped/DeleteKeyTyped.html
23-07-2014

closed/java/awt/event/KeyEvent/KeyPressesOnDisabledComps/KeyPressesOnDisabledComps.java
23-07-2014

closed/java/awt/Choice/BlockedWin32Choice/BlockedWin32Choice.java
23-07-2014

closed/java/awt/Choice/ChoiceDragEventsInside/ChoiceDragEventsInside.html closed/java/awt/Choice/ChoiceHandleMouseEvent_2/ChoiceHandleMouseEvent_2.html closed/java/awt/Choice/ChoiceStaysOpenedOnTAB/ChoiceStaysOpenedOnTAB.html closed/java/awt/Choice/ResizeAutoClosesChoice/ResizeAutoClosesChoice.java closed/java/awt/Choice/WheelEventsConsumed/WheelEventsConsumed.html closed/java/awt/Dialog/DialogAnotherThread/JaWSTest.java closed/java/awt/Dialog/DialogDeadlock/DialogDeadlockTest.html closed/java/awt/Dialog/ModalDialogOnNonEdt/ModalDialogOnNonEdt.html closed/java/awt/dnd/DnDClipboardDeadlockTest/DnDClipboardDeadlockTest.html closed/java/awt/dnd/DragGetTransferableTest/DragGetTransferableTest.html closed/java/awt/dnd/ModalDialogOnDropDeadlockTest/ModalDialogOnDropDeadlockTest.html closed/java/awt/dnd/MozillaDnDTest/MozillaDnDTest.html closed/java/awt/event/ComponentEvent/MovedResizedTardyEventTest/MovedResizedTardyEventTest.html closed/java/awt/event/KeyEvent/DisabledTargetF10/DisabledTargetF10.html closed/java/awt/EventQueue/PushPopTest/PushPopTest.html closed/java/awt/Focus/6378278/InputVerifierTest.java closed/java/awt/Focus/6401036/InputVerifierTest2.java closed/java/awt/Focus/ChildWindowFocusTest/ChildWindowFocusTest.html closed/java/awt/Focus/LabelScrollbar/LabelScrollBarFocus.html closed/java/awt/Focus/ModalDialogInFocusEventTest/ModalDialogInFocusEventTest.html closed/java/awt/Focus/RestoreFocusInfiniteLoopTest/RestoreFocusInfiniteLoopTest.html closed/java/awt/font/FontNames/OldNames.java closed/java/awt/List/KeyEventsTest/KeyEventsTest.html closed/java/awt/Modal/ModalDialogCannotBeMadeNonModalTest/ModalDialogCannotBeMadeNonModalTest.html closed/java/awt/Modal/ZOrderTest6271792/ZOrderTest.java closed/java/awt/MouseInfo/ContainerResizeMousePositionTest.html closed/java/awt/PopupMenu/RightClickPopupTest/RightClickPopupTest.java closed/java/awt/Robot/RobotStressTest/RobotStressTest.java closed/java/awt/SplashScreen/test20.sh closed/java/awt/TextComponent/CorrectTextComponentSelectionTest/CorrectTextComponentSelectionTest.html closed/java/awt/TextField/ZeroTimeActionEvent/ZeroTimeActionEvent.java closed/java/awt/Toolkit/TimeUnsignedConversionTest/TimeUnsignedConversionTest.java closed/java/awt/Window/OverrideRedirectRemoved/ChildWindowProblem.java
10-07-2014

closed/java/awt/Choice/ChoiceConsumeMouseEvents/ChoiceConsumeMouseEvents.html
10-07-2014

closed/java/awt/Button/DoubleActionEventTest/DoubleActionEventTest.html
10-07-2014

closed/com/sun/java/swing/plaf/gtk/ColorChooser/4994329/bug4994329.java
10-07-2014

closed/java/awt/ScrollPane/RemoveChild/ScrollPaneRemoveAdd.html
23-06-2014

closed/java/awt/Scrollbar/ScrollbarKeyControlTest/ScrollbarKeyControlTest.html
23-06-2014

closed/java/awt/Focus/NonFocusableBlockedOwnerTest/NonFocusableBlockedOwnerTest.html
23-06-2014

closed/java/awt/Focus/ClearMostRecentFocusOwnerTest/ClearMostRecentFocusOwnerTest.html
23-06-2014

closed/java/awt/event/KeyEvent/KeyTyped/Numpad1KeyTyped.html
23-06-2014

closed/java/awt/MouseInfo/ContainerMousePositionTest.html
20-06-2014

closed/java/awt/Modal/BlockedMouseInputTest/BlockedMouseInputTest.html
20-06-2014

closed/java/awt/List/ActionEventWhenHitEnterTest/ActionEventWhenHitEnterTest.html
20-06-2014

closed/java/awt/FullScreen/VramExaustionFSTest/VramExaustionFSTest.java
20-06-2014

closed/java/awt/Focus/WindowUpdateFocusabilityTest/WindowUpdateFocusabilityTest.html
20-06-2014

closed/java/awt/Focus/RequestOnCompWithNullParent/RequestOnCompWithNullParent_Barrier.java
20-06-2014

closed/java/awt/dnd/NoTargetNoDragExitTest/NoTargetNoDragExitTest.html begins dragging before frame's initialization. So the test waits forever for event.
20-06-2014

closed/java/awt/dnd/NestedHeavyweightDropTargetTest/NestedHeavyweightDropTargetTest.html
20-06-2014

For example, the frame is not painted yet, but the test begins checking.
20-06-2014