JDK-8144125 : [macos] java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java failed automatically
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9,10,11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2015-11-19
  • Updated: 2020-01-13
  • Resolved: 2019-05-09
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 11 JDK 13
11.0.6-oracleFixed 13 b21Fixed
Related Reports
Relates :  
Relates :  
Description
Testsuite name:Regression
Test name(s):java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java
Product(s) tested:jdk9b92(64bit)
OS/architecture:mac10.11-x64(MacBook-Pro,Processor(2.2 Ghz Intel Core i7),Memory(4Gb 1333MHz DDR3),Graphics(AMD Radeon HD 6750M 512MB))


Reproducible: Always
Reproducible on machine:Evergreen-machine
[If Sometimes] Also reproducible on machine:

Is it a Regression: NO(jdk9b91 jdk9b90 jdk9b89 failed the same issue)
[If Regression] Regression introduced in release/build:
Test result on the last GAed release for this train: 
[if Fail] Test result on FCS:

Is it a platform specific issue: YES(the same build on win7-sp1-x64:Passed;
                                                      the same build on solaris11.2-x64:Passed;
                                                      the same build on solaris11.3-sparc:Passed;
                                                      the same build on oel6.4-uek-x64:Passed)
[If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing:Yes
[If new configuration testing] Issue specific to execution mode or OS/browser version:mac10.11
 

Actual behavior:
This case failed automatically and thrown the following exception:

Failed component: java.awt.Button[button0,20,20,50x50,invalid,label=B]
java.lang.RuntimeException: Test FAILED: COMPONENT_MOVED is sent 2 times after call to setBounds()
	at MovedResizedTwiceTest.fail(MovedResizedTwiceTest.java:265)
	at MovedResizedTwiceTest.checkMoved(MovedResizedTwiceTest.java:195)
	at MovedResizedTwiceTest.init(MovedResizedTwiceTest.java:132)
	at MovedResizedTwiceTest.main(MovedResizedTwiceTest.java:211)
	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:520)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:747)
Comments
Fix request (11u) Requesting backport of this item for parity with Oracle 11.0.6. Patch applies cleanly net copyright in LWComponentPeer.java. Runs through SAP's regression test system successfully.
11-11-2019

Same bug was fixed on Linux in jdk9: JDK-8058959
23-04-2019

This is not a testbug.
23-04-2019

Yes, the bug is reproduced on OS X 10.10.5. Error log is: Failed component: java.awt.Button[button0,20,20,50x50,invalid,label=B] java.lang.RuntimeException: Test FAILED: COMPONENT_MOVED is sent 2 times after call to setBounds() After debugging it was found that for every Button move, COMPONENT_MOVED event was received twice. Need to debug further. It may be related to issue number 5025858.
10-12-2015

Manajit, did you reproduce this bug?
08-12-2015

RULE "java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java" Exception java.lang.RuntimeException: Test FAILED: COMPONENT_MOVED is sent ... times after call to setBounds()
19-11-2015