Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6225328

Regression: Disabled component gains focus and receives keyevents on win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ant Anton Tarasov
              Reporter:
              mhuangsunw Melinda Huang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: