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

awt :TypeAhead Test is failing for all windows but passes in solaris and linux for all tiger JDKS.

    Details

    • Subcomponent:
    • Resolved In Build:
      b79
    • CPU:
      x86, sparc
    • OS:
      solaris_9, windows
    • Verification:
      Verified

      Description

      Synopsis: TypeAhead Test is failing for all windows but passes in solaris and linux for all tiger JDKS(EVEN FCS).

      Test Case from Regression workspce:
      ===================================
      java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.html

      Java -version:
      ==============
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-ea-b01)
      Java HotSpot(TM) Server VM (build 1.5.0_07-ea-b01, mixed mode)

      To Reproduce:
      =============
      1) Inatll the test jdk in any windows machine.
      2) Copy TestDialogTypeAhead.html, TestDialogTypeAhead.java and awtsqe.jar which are attached to the bugster.
      3) Compile the java files as
      <jdk-home>/bin/javac -classpath ./awtsqe.jar TestDialogTypeAhead.java
      4) Run the applet as
      <jdk-home>/bin/appletviewer -Xnosecurity -J-classpath -J./awtsqe.jar:. TestDialogTypeAhead.html

      Out put Exception:
      ==================
      b is shown
      b is focused
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN] on but
      ton0
      java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      B pressed
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN] on but
      ton0
      java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      Ok got focus
      java.lang.RuntimeException: Type-ahead doesn't work
              at TestDialogTypeAhead.start(TestDialogTypeAhead.java:152)
              at sun.applet.AppletPanel.run(AppletPanel.java:418)
              at java.lang.Thread.run(Thread.java:595)
      Ok got focus
      Ok got focus
      Ok got focus
      Ok got focus

      Out put in Linux And Solaris:
      ==============================
      b is shown
      b is focused
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      java.awt.event.KeyEvent[KEY_TYPED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar=' ',keyLocation=KEY_LOCATION_UNKNOWN] on button0
      java.awt.event.KeyEvent[KEY_RELEASED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button0
      B pressed
      Ok got focus
      java.awt.event.KeyEvent[KEY_PRESSED,keyCode=32,keyText=Space,keyChar=' ',keyLocation=KEY_LOCATION_STANDARD] on button1
      OK pressed

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ant Anton Tarasov
                Reporter:
                bjuttiyasunw Basavaraj Juttiyavar (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: