JDK-6225328 : Regression: Disabled component gains focus and receives keyevents on win32
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: generic
  • Submitted: 2005-02-03
  • Updated: 2011-01-19
  • Resolved: 2005-05-12
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 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Description
JDK		    : Mustang b20, b21
Platform[s]         : Fails On:  Windows XP (AMD), Windows 2003 (AMD)
Failing Test [s]    : java/awt/Button/DisabledButtonPress/DisabledButtonPress.html

Test source location:
======================
/net/jre.sfbay/p/v08/jdk/6.0/ea/b21/ws/j2se/test/java/awt/Button/DisabledButtonPress

jtr file location:
==================
/net/cady/export6/results/mustang/b20/reg/win2003-amd64-reg/workDir/java/awt/Button/DisabledButtonPress/DisabledButtonPress.jtr

How to reproduce:
    ====================
    - Set JAVA_HOME to /net/koori/onestop/jdk/6.0/latest/binaries/windows-amd64
    - cd /net/jre.sfbay/p/v08/jdk/6.0/ea/b20/ws/j2se/test/java/awt/Button/DisabledButtonPress
    - /net/koori.sfbay/onestop/jct-tools/2.1.6/archive/fcs/binaries/win32/bin/jtreg -r:/tmp -w:/tmp DisabledButtonPress.html

Test output:
=============
#Test Results (version 2)
#Wed Feb 02 15:45:53 PST 2005
#checksum:3dc4678832c1dc45
#-----testdescription-----
$file=Y:\\jdk1.6.0\\latest\\ws\\j2se\\test\\java\\awt\\Button\\DisabledButtonPress\
\DisabledButtonPress.html
$root=Y:\\jdk1.6.0\\latest\\ws\\j2se\\test
author=###@###.### area=Event
keywords=bug5044469
run=USER_SPECIFIED applet DisabledButtonPress.html\r\n
source=DisabledButtonPress.html
title=REG: Disabled component gains focus and receives keyevents on win32

#-----environment-----

#-----testresult-----
description=file:///Y:/jdk1.6.0/latest/ws/j2se/test/java/awt/Button/DisabledButtonP
ress/DisabledButtonPress.html
end=Wed Feb 02 15:45:53 PST 2005
environment=regtest
execStatus=Failed. Execution failed: Applet thread threw exception: java.lang.Runti
meException: Test failed. A Button doesn't have a focus.
javatestOS=Windows 2003 5.2 (amd64)
javatestVersion=2.1.6
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile applet
start=Wed Feb 02 15:45:47 PST 2005
status=Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeEx
ception: Test failed. A Button doesn't have a focus.
test=java/awt/Button/DisabledButtonPress/DisabledButtonPress.html
work=Y:\\tmp\\java\\awt\\Button\\DisabledButtonPress

#section:script_messages
----------messages:(4/217)----------
JDK under test: (C:/jdk/b21/windows-amd64/jdk1.6.0)
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b21)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-ea-b21, mixed mode)

#section:build
----------messages:(3/108)----------
command: build DisabledButtonPress 
reason: Named class compiled on demand
elapsed time (seconds): 1.218
result: Passed. Compilation successful

#section:compile
----------messages:(3/204)*----------
command: compile Y:\\jdk1.6.0\\latest\\ws\\j2se\\test\\java\\awt\\Button\\DisabledB
uttonPress\\DisabledButtonPress.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 1.203
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:applet
----------messages:(3/142)----------
command: applet DisabledButtonPress.html
reason: User specified action: run applet DisabledButtonPress.html 
elapsed time (seconds): 3.907
----------System.out:(4/107)----------
Toolkit = sun.awt.windows.WToolkit
Button got focus
Requesting focus
 b2.requestFocusInWindow( )=false
----------System.err:(5/379)----------
java.lang.RuntimeException: Test failed. A Button doesn't have a focus.
        at DisabledButtonPress.start(DisabledButtonPress.java:49)
        at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.ja
va:134)
        at java.lang.Thread.run(Thread.java:595)
STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Test failed. A Button doesn't have a focus.
result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. A Button doesn't have a focus.

test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed. A Button doesn't have a focus.

###@###.### 2005-2-03 22:43:39 GMT

Comments
EVALUATION A regression introduced in b15. There are a bug fix and a PIT bug fix concerning this issue. ###@###.### 2005-2-04 12:32:08 GMT This is a duplicate of 6200795 referenced in See Also. That bug was fixed in Mustang-b24. This one is the same test failure failed against b21. So, I'm closing it. ###@###.### 2005-05-12 08:59:55 GMT
04-02-2005