JDK-8003533 : [macosx] SunToolkit.realSync() method does not properly work on MacOSX
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,10,11,12
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: os_x
  • CPU: generic
  • Submitted: 2012-11-16
  • Updated: 2021-05-21
  • Resolved: 2021-05-21
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
Relates :  
Relates :  
Relates :  
Description
JFrame class setVisible(true) method takes more time on MacOSX (frame seems not to appear instantly, but shows gradually). I attached java code (test) here (bug6796710.java). In this file line 101 you can see Thread.sleep(1000); without this line test seems to fail intrmittently (try 10 -15 times without this line and you will see it).
Comments
The InfiniteLoop exception above was fixed by the JDK-8196100. The delay described in the description is needed to load and show the html file, it is unrelated to the show frame operation and realSync.
21-05-2021

Note that OS X-specific clause WAS removed from Robot.waitForIdle() method, and as this bug was not fixed, many DnD tests on OS X failed consistently with "infinite loop" message (number of iterations on Mac exceeded MAX_ITERS). RULE "AWT_DnD/Basic_DnD/Automated/DnDMerlinQL/SingleJVM/DnDMerlinQLTestsuite_DnDJTextAreaTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/Basic_DnD/Automated/DnDMerlinQL/SingleJVM/DnDMerlinQLTestsuite_DnDStringTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/both/DnDMerlinQLTestsuite_DnDJTextAreaTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/both/DnDMerlinQLTestsuite_DnDStringTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/source/DnDMerlinQLTestsuite_DnDJTextAreaTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/source/DnDMerlinQLTestsuite_DnDStringTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/target/DnDMerlinQLTestsuite_DnDJTextAreaTest" Exception sun.awt.SunToolkit$InfiniteLoop RULE "AWT_DnD/DnDClassLoader/Automated/target/DnDMerlinQLTestsuite_DnDStringTest" Exception sun.awt.SunToolkit$InfiniteLoop
20-10-2015

Tests mentioned in JDK-8076178 (and much more) will stop failing as soon as this bug is fixed and OS X-specific clause removed from Robot.waitForIdle() method.
03-04-2015

We've reviewed your bulk request (120 bugs) and are OK with deferring them to JDK 9. You can go ahead and update these to: - Set label to 8-defer-approved - FixVersion to 9 Thanks for doing a great job of summarizing the details for the bulk deferral for us! Kind regards, Mathias
19-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

jdk8: SQE agree to defer.
13-09-2013

Considering the fact that realSync() can only do the best it can and there is a workaround for this issue (Thread.sleep(1000);) , I'd like to defer it past JDK 8 release.
03-09-2013