JDK-8058959 : closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java failed automatically
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7,8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_oracle_6.0
  • CPU: x86_64
  • Submitted: 2014-08-22
  • Updated: 2015-11-19
  • Resolved: 2015-10-05
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 9
9 b89Fixed
Related Reports
Relates :  
Description
Testsuite name:Regression
Test name(s):closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java
Product(s) tested:jdk8u20b26(64bit) 
OS/architecture:oel7.0-x64

Error log file (if present): http://scaaa008.us.oracle.com:9502/runs%2F568778.ManualSubmit-1/workDir/closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.jtr
Reproducible: Always 
Reproducible on machine:Evergreen-machine 
[If Sometimes] Also reproducible on machine: 

Is it a Regression: NO (8u20b02 and 8u20b13 on same machine failed as the same issue)
[If Regression] Regression introduced in release/build: 
Test result on the last GAed release for this train: 8u11b11(64bit) on same machine failed as the same issue
[if Fail] Test result on FCS: 8u11b12(64bit) on same machine failed as the same issue

Is it a platform specific issue: YES :8u20b26(64bit) on ubuntu14.04-x64 pass automatically
[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:OEL7.0-x64
 
Steps to reproduce:
1.Download regression workspace from http://jre.us.oracle.com/java/re/jdk/8u20/promoted/fcs/b26/ws/jdk/test/ to /regression
2. Install test bundle JDK8u20b26 (download from http://jre.us.oracle.com/java/re/jdk/8u20/promoted/fcs/b26/bundles/linux-x64/jdk-8u20-linux-amd64.tar.gz) to /regression/jdk1.8.0_20
3.Install stable jdk7u45 b18 (download from http://jre.us.oracle.com/java/re/jdk/7u45/promoted/fcs/b18/bundles/linux-x64/jdk-7u45-linux-amd64.tar.gz) locate at /regression/jdk1.7.0_45
4. Unzip Jtreg (download from http://jre.us.oracle.com/java/re/jtreg/4.1/promoted/fcs/b02/bundles/jtreg_bin-4.1.zip) to /export/home/regression/
5. Create the script regression.sh as follows and run it
export JT_JAVA=/regression/jdk1.7.0_45
/regression/jtreg/linux/bin/jtreg -v -m -ignore:quiet -jdk:/regression/jdk1.8.0_20 -r:/regression/results/reportDir -w:/regression/results/workDir /regression/test/closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java

Actual behavior:

This case failed automatically and thrown the following exception:

Error: wrong location on screen after COMPONENT_MOVED
Location on screen is (200, 200) against right location (150, 150)
Error: wrong location on screen after COMPONENT_MOVED
Location on screen is (200, 200) against right location (150, 150)
Failed component: java.awt.Frame[frame0,150,150,100x100,title=Frame F,resizable,normal]
java.lang.RuntimeException: Test FAILED: COMPONENT_MOVED is sent 3 times after call to setBounds()
	at MovedResizedTwiceTest.fail(MovedResizedTwiceTest.java:236)
	at MovedResizedTwiceTest.checkMoved(MovedResizedTwiceTest.java:166)
	at MovedResizedTwiceTest.init(MovedResizedTwiceTest.java:91)
	at MovedResizedTwiceTest.main(MovedResizedTwiceTest.java:182)
	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:483)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Comments
The same issue on ubuntu14.10-x64 with JDK9b52(32bit) RULE java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java Exception java.lang.RuntimeException: Test FAILED: COMPONENT_MOVED is sent ... times after call to setBounds()
03-03-2015

The same issue on mac10.9-x64 with JDK9b43(64bit) RULE java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java Exception java.lang.RuntimeException: Test FAILED: COMPONENT_RESIZED is not sent after call to setSize()
25-12-2014

We still can reproduce this issue with JDK7u71b13 64bit on ubuntu14.04-x64. refer to the following log. http://scaaa008.us.oracle.com:9502/runs%2F586235.ManualSubmit-1/workDir/closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.jtr .
18-09-2014

RULE closed/java/awt/event/ComponentEvent/MovedResizedTwiceTest/MovedResizedTwiceTest.java Exception java.lang.RuntimeException
11-09-2014