-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
7
-
None
-
generic
-
generic
The test test/java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java fails when ran on JDK7b23 on Windows Vista.
The jtreg output follows:
#Test Results (version 2)
#Fri Dec 14 16:02:19 MSK 2007
#checksum:34deb63606c1b857
#-----testdescription-----
$file=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\AutoRequestFocusSetVisibleTest.java
$root=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test
author=anton.tarasov: area=awt.focus
keywords=bug6187066
library=../../regtesthelpers
run=USER_SPECIFIED build Util\r\nUSER_SPECIFIED main AutoRequestFocusSetVisibleTest\r\n
source=AutoRequestFocusSetVisibleTest.java
title=Tests the Window.autoRequestFocus property for the Window.setVisible() method.
#-----environment-----
#-----testresult-----
description=file:///C:/data/ws/7-1-nonFocusableResizableTooSmall/test/java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java
end=Fri Dec 14 16:02:19 MSK 2007
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
javatestOS=Windows Vista 6.0 (x86)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile build main
start=Fri Dec 14 16:02:14 MSK 2007
status=Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
test=java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java
work=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\JTwork\\java\\awt\\Focus\\AutoRequestFocusTest
#section:script_messages
----------messages:(4/210)----------
JDK under test: (j:/re/j2se/1.7.0/promoted/latest/binaries/windows-i586)
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b23)
Java HotSpot(TM) Client VM (build 12.0-b01, mixed mode)
#section:build
----------messages:(3/101)----------
command: build Util
reason: User specified action: run build Util
elapsed time (seconds): 1.734
result: Passed. Compilation successful
#section:compile
----------messages:(3/230)*----------
command: compile C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java
reason: .class file out of date or does not exist
elapsed time (seconds): 1.734
----------System.out:(0/0)----------
----------System.err:(17/1696)*----------
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:65: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
import java.awt.peer.FramePeer;
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:96: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
FramePeer frame_peer = (FramePeer) embedder.getPeer();
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:96: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
FramePeer frame_peer = (FramePeer) embedder.getPeer();
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:176: warning: sun.awt.SunToolkit is Sun proprietary API and may be removed in a future release
((sun.awt.SunToolkit)Toolkit.getDefaultToolkit()).realSync();
^
Note: C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
result: Passed. Compilation successful
#section:build
----------messages:(3/117)----------
command: build AutoRequestFocusSetVisibleTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. No need to compile: AutoRequestFocusSetVisibleTest.java
#section:main
----------messages:(3/150)----------
command: main AutoRequestFocusSetVisibleTest
reason: User specified action: run main AutoRequestFocusSetVisibleTest
elapsed time (seconds): 3.328
----------System.out:(11/1268)----------
Any messages for the tester will display here.
Stage 1 in progress...
Stage 2 in progress...
Stage 3.1 in progress...
Stage 3.2 in progress...
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,8,27,1280x975,label=button],cause=ACTIVATION] on java.awt.Button[button1,8,27,284x265,label=button]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame1,-8,-8,1296x1010,layout=java.awt.BorderLayout,title=Test Frame,resizable,maximized],oldState=0,newState=0] on frame0
java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame1,-8,-8,1296x1010,layout=java.awt.BorderLayout,title=Test Frame,resizable,maximized],oldState=0,newState=0] on frame0
java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=java.awt.Frame[frame0,100,100,300x300,layout=java.awt.BorderLayout,title=Base Frame,resizable,normal],oldState=0,newState=0] on frame1
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame0,100,100,300x300,layout=java.awt.BorderLayout,title=Base Frame,resizable,normal],oldState=0,newState=0] on frame1
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Button[button1,8,27,284x265,label=button],cause=ACTIVATION] on java.awt.Button[button0,8,27,1280x975,label=button]
----------System.err:(16/1099)----------
TestFailedException: Test failed: the window shouldn't gain focus but it did!
at AutoRequestFocusSetVisibleTest.test(AutoRequestFocusSetVisibleTest.java:405)
at AutoRequestFocusSetVisibleTest.test(AutoRequestFocusSetVisibleTest.java:447)
at AutoRequestFocusSetVisibleTest.start(AutoRequestFocusSetVisibleTest.java:218)
at AutoRequestFocusSetVisibleTest.main(AutoRequestFocusSetVisibleTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:674)
JavaTest Message: Test threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
result: Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
test result: Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
The jtreg output follows:
#Test Results (version 2)
#Fri Dec 14 16:02:19 MSK 2007
#checksum:34deb63606c1b857
#-----testdescription-----
$file=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\AutoRequestFocusSetVisibleTest.java
$root=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test
author=anton.tarasov: area=awt.focus
keywords=bug6187066
library=../../regtesthelpers
run=USER_SPECIFIED build Util\r\nUSER_SPECIFIED main AutoRequestFocusSetVisibleTest\r\n
source=AutoRequestFocusSetVisibleTest.java
title=Tests the Window.autoRequestFocus property for the Window.setVisible() method.
#-----environment-----
#-----testresult-----
description=file:///C:/data/ws/7-1-nonFocusableResizableTooSmall/test/java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java
end=Fri Dec 14 16:02:19 MSK 2007
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
javatestOS=Windows Vista 6.0 (x86)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile build main
start=Fri Dec 14 16:02:14 MSK 2007
status=Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
test=java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java
work=C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\JTwork\\java\\awt\\Focus\\AutoRequestFocusTest
#section:script_messages
----------messages:(4/210)----------
JDK under test: (j:/re/j2se/1.7.0/promoted/latest/binaries/windows-i586)
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b23)
Java HotSpot(TM) Client VM (build 12.0-b01, mixed mode)
#section:build
----------messages:(3/101)----------
command: build Util
reason: User specified action: run build Util
elapsed time (seconds): 1.734
result: Passed. Compilation successful
#section:compile
----------messages:(3/230)*----------
command: compile C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java
reason: .class file out of date or does not exist
elapsed time (seconds): 1.734
----------System.out:(0/0)----------
----------System.err:(17/1696)*----------
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:65: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
import java.awt.peer.FramePeer;
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:96: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
FramePeer frame_peer = (FramePeer) embedder.getPeer();
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:96: warning: java.awt.peer.FramePeer is Sun proprietary API and may be removed in a future release
FramePeer frame_peer = (FramePeer) embedder.getPeer();
^
C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java:176: warning: sun.awt.SunToolkit is Sun proprietary API and may be removed in a future release
((sun.awt.SunToolkit)Toolkit.getDefaultToolkit()).realSync();
^
Note: C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\\data\\ws\\7-1-nonFocusableResizableTooSmall\\test\\java\\awt\\Focus\\AutoRequestFocusTest\\..\\..\\regtesthelpers\\Util.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
result: Passed. Compilation successful
#section:build
----------messages:(3/117)----------
command: build AutoRequestFocusSetVisibleTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0
result: Passed. No need to compile: AutoRequestFocusSetVisibleTest.java
#section:main
----------messages:(3/150)----------
command: main AutoRequestFocusSetVisibleTest
reason: User specified action: run main AutoRequestFocusSetVisibleTest
elapsed time (seconds): 3.328
----------System.out:(11/1268)----------
Any messages for the tester will display here.
Stage 1 in progress...
Stage 2 in progress...
Stage 3.1 in progress...
Stage 3.2 in progress...
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,8,27,1280x975,label=button],cause=ACTIVATION] on java.awt.Button[button1,8,27,284x265,label=button]
java.awt.event.WindowEvent[WINDOW_LOST_FOCUS,opposite=java.awt.Frame[frame1,-8,-8,1296x1010,layout=java.awt.BorderLayout,title=Test Frame,resizable,maximized],oldState=0,newState=0] on frame0
java.awt.event.WindowEvent[WINDOW_DEACTIVATED,opposite=java.awt.Frame[frame1,-8,-8,1296x1010,layout=java.awt.BorderLayout,title=Test Frame,resizable,maximized],oldState=0,newState=0] on frame0
java.awt.event.WindowEvent[WINDOW_ACTIVATED,opposite=java.awt.Frame[frame0,100,100,300x300,layout=java.awt.BorderLayout,title=Base Frame,resizable,normal],oldState=0,newState=0] on frame1
java.awt.event.WindowEvent[WINDOW_GAINED_FOCUS,opposite=java.awt.Frame[frame0,100,100,300x300,layout=java.awt.BorderLayout,title=Base Frame,resizable,normal],oldState=0,newState=0] on frame1
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Button[button1,8,27,284x265,label=button],cause=ACTIVATION] on java.awt.Button[button0,8,27,1280x975,label=button]
----------System.err:(16/1099)----------
TestFailedException: Test failed: the window shouldn't gain focus but it did!
at AutoRequestFocusSetVisibleTest.test(AutoRequestFocusSetVisibleTest.java:405)
at AutoRequestFocusSetVisibleTest.test(AutoRequestFocusSetVisibleTest.java:447)
at AutoRequestFocusSetVisibleTest.start(AutoRequestFocusSetVisibleTest.java:218)
at AutoRequestFocusSetVisibleTest.main(AutoRequestFocusSetVisibleTest.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:674)
JavaTest Message: Test threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
result: Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
test result: Failed. Execution failed: `main' threw exception: TestFailedException: Test failed: the window shouldn't gain focus but it did!
- duplicates
-
JDK-6567410 PIT : java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java fails
- Closed
- relates to
-
JDK-6187066 Want to open a Frame without activating it
- Closed