JDK-6652154 : java/awt/KeyboardFocusmanager/TypeAhead/EnqueueWithDialogTest/EnqueueWithDialogTest.html fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-01-18
  • Updated: 2008-05-21
  • Resolved: 2008-05-21
Related Reports
Duplicate :  
Description
JDK		    : Fails:  6u10 b08
                      Passes: 6u10 b07

Platform Tested     : Windows Vista Home
		      
Failing Test [s]    : java/awt/KeyboardFocusmanager/TypeAhead/EnqueueWithDialogTest/EnqueueWithDialogTest.html


    Test output:
    ============
----------System.err:(10/1059)----------
java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,8,28,108x23,label=press],cause=ACTIVATION] on com.sun.javatest.regtest.AppletWrapper$AppletRunner[frame0,398,249,228x271,invalid,layout=java.awt.GridBagLayout,title=EnqueueWithDialogTest,resizable,normal]
java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=com.sun.javatest.regtest.AppletWrapper$AppletRunner[frame0,398,249,228x271,invalid,layout=java.awt.GridBagLayout,title=EnqueueWithDialogTest,resizable,normal],cause=ACTIVATION] on java.awt.Button[button0,8,28,108x23,label=press]
b is shown
sun.awt.SunToolkit$InfiniteLoop
	at sun.awt.SunToolkit.realSync(SunToolkit.java:1594)
	at EnqueueWithDialogTest.start(EnqueueWithDialogTest.java:112)
	at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:134)
	at java.lang.Thread.run(Thread.java:619)

Comments
EVALUATION The cause of the test failure is not any bug in the type-ahead functionality. The test fails because the internal SunToolkit.realSync method throws the InfiniteLoop exception - the problem has been already reported (6421984).
21-05-2008

EVALUATION Test also fails with JDK6.0b95. Since the reason of the failure is different with reported one it is still may be a regression.
20-05-2008

EVALUATION Intermittent failure on Windows2000 is experienced with JDK6u10 and JDK7b23. Test outputs similar for these cases: #Test Results (version 2) #Tue May 20 15:02:02 MSD 2008 #checksum:3be5592f2192ef18 #-----testdescription----- $file=G:\\awt_reg_tests_3\\closed\\java\\awt\\KeyboardFocusmanager\\TypeAhead\\EnqueueWithDialogTest\\EnqueueWithDialogTest.html $root=G:\\awt_reg_tests_3\\closed\\java\\awt author=###@###.### area=awt.focus keywords=bug4799136 run=USER_SPECIFIED applet EnqueueWithDialogTest.html\r\n source=EnqueueWithDialogTest.html title=Tests that type-ahead for dialog works and doesn't block program #-----environment----- #-----testresult----- description=file:///G:/awt_reg_tests_3/closed/java/awt/KeyboardFocusmanager/TypeAhead/EnqueueWithDialogTest/EnqueueWithDialogTest.html end=Tue May 20 15:02:02 MSD 2008 environment=regtest execStatus=Failed. Execution failed: Execution failed javatestOS=Windows 2000 5.0 (x86) javatestVersion=2.1.5 script=com.sun.javatest.regtest.RegressionScript sections=script_messages build applet start=Tue May 20 15:01:57 MSD 2008 status=Failed. Execution failed: Execution failed test=KeyboardFocusmanager/TypeAhead/EnqueueWithDialogTest/EnqueueWithDialogTest.html work=G:\\awt_reg_tests_3\\closed\\java\\awt\\KeyboardFocusmanager\\TypeAhead\\EnqueueWithDialogTest\\JTwork\\KeyboardFocusmanager\\TypeAhead\\EnqueueWithDialogTest #section:script_messages ----------messages:(4/212)---------- JDK under test: (G:/sixuN_orig_1) java version "1.6.0-internal" Java(TM) SE Runtime Environment (build 1.6.0-internal-dav_27_mar_2008_18_56-b00) Java HotSpot(TM) Client VM (build 1.6.0_10-ea-b08, mixed mode) #section:build ----------messages:(3/108)---------- command: build EnqueueWithDialogTest reason: Named class compiled on demand elapsed time (seconds): 0.0 result: Passed. No need to compile: EnqueueWithDialogTest.java #section:applet ----------messages:(3/146)---------- command: applet EnqueueWithDialogTest.html reason: User specified action: run applet EnqueueWithDialogTest.html elapsed time (seconds): 5.141 ----------System.out:(0/0)---------- ----------System.err:(22/2787)---------- java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=null,cause=ACTIVATION] on com.sun.javatest.regtest.AppletWrapper$AppletRunner[frame0,402,253,220x262,layout=java.awt.GridBagLayout,title=EnqueueWithDialogTest,resizable,normal] java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Button[button0,4,23,104x23,label=press],cause=ACTIVATION] on com.sun.javatest.regtest.AppletWrapper$AppletRunner[frame0,402,253,220x262,layout=java.awt.GridBagLayout,title=EnqueueWithDialogTest,resizable,normal] java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=com.sun.javatest.regtest.AppletWrapper$AppletRunner[frame0,402,253,220x262,layout=java.awt.GridBagLayout,title=EnqueueWithDialogTest,resizable,normal],cause=ACTIVATION] on java.awt.Button[button0,4,23,104x23,label=press] b is shown b is focused java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD,rawCode=32] on button0,1211281318921 java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=0] on button0,1211281318921 java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD,rawCode=32] on button0,1211281318937 java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=press,when=1211281318937,modifiers=] on button0,1211281318937 B pressed java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD,rawCode=32] on button0,1211281318937 java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=0] on button0,1211281318937 java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD,rawCode=32] on button0,1211281318937 java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=java.awt.Dialog[dialog0,0,0,112x27,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=dialog],cause=ACTIVATION] on java.awt.Button[button0,4,23,104x23,label=press] java.awt.FocusEvent[FOCUS_GAINED,permanent,opposite=java.awt.Button[button0,4,23,104x23,label=press],cause=ACTIVATION] on java.awt.Dialog[dialog0,0,0,112x27,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=dialog] DIALOG got focus java.lang.RuntimeException: Type-ahead doesn't work at EnqueueWithDialogTest.start(EnqueueWithDialogTest.java:131) at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:145) at java.lang.Thread.run(Thread.java:619) STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Type-ahead doesn't work java.awt.FocusEvent[FOCUS_LOST,temporary,opposite=null,cause=ACTIVATION] on java.awt.Dialog[dialog0,0,0,112x27,layout=java.awt.BorderLayout,APPLICATION_MODAL,title=dialog] result: Failed. Execution failed: Execution failed test result: Failed. Execution failed: Execution failed
20-05-2008

EVALUATION The test passes on my WinXP with both 6u10-b07 and the latest available 6u10-b10. I suspect this is not a problem with the test, and not a regression, but rather some timings issue with SunToolkit.realSync() method.
25-01-2008