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

keyboard tests failed on Vista for Arabic locale throwing StringIndexOutOfBoundsException

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      Build: b77
      platform: Windows Vista CTP build 5308
      Locale : ar
      GS testsuite used: GS-Tonga_10.zip


      1)Executed the tests for arabic locale from this testsuite using the keywords ar&&!manual
      2)you will notice the following testcases have failed :
      keyboard/windows_Swing_Keyboard_ar
      keyboard/windows_AWT_Keyboard_ar

      NOTE:
      -I have attached the Arabic.png files from logs files separately as awt-Arabic.png and
      swing-Arabic.png files for easy reference to below details.
      -Windows.log files are attached separately for AWT & SWING.


      PROBLEMS:

      1) multiple inputs of the same key i.e Windows V-Keycode found & the J-keycode for them are showing different. Mismatch is resulting from this.
      i.e
        awt-Arabic.png : notice repeatitions for VK_S, VK_T,VK_U
        swing-Arabic.png : you will find repeatitions for VK_A,VK_B
      Observations:
      - N-Char is same but the J-Keycode is different for these repeated ones
      i.e swing-Arabic.png : Though VK_A is repeated the N-Char is same,but the J-Keycode is different
      - J-Char is returned based on this J-Keycode(which is incorrect for repeated entries). Hence J-Char mismatching with N-Char & resulting in failure

      Need to investigate 2 things here:
      - why repeatetions are found with Windows V-Keycodes
      - why the J-Keycodes for the same Windows V-Keycodes are different

      Filing it as JDK bug since the J-Keycode is the result of getKeyCode() in testcase & its different for same key input.
      But Not sure of the reason for repeatitions.


      2)StringIndexOutOfBoundsException found in logs :
      ---------------
      Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: 1
      at java.lang.String.charAt(Unknown Source)
      at WinKeyboardTest.keyTyped(WinKeyboardTest.java:328)
      at java.awt.Component.processKeyEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.TextComponent.processEvent(Unknown Source)
      at java.awt.TextField.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
      at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      ------------

      [today I could not cross-check with Non-Vista windows.I will update the results after more investigation on that if any.]

      Detailed report may be found at:
      AWT:
      http://java-g11n.sfbay/j2se/6.0/i18n/reports/beta2/results/b77/i18n-bidi/WindowsVista_x86-CTPb5308-ar_EG/admin.Windows_Vista.x86/Windows_AWT_Keyboard_ar/

      SWING:
      http://java-g11n.sfbay/j2se/6.0/i18n/reports/beta2/results/b77/i18n-bidi/WindowsVista_x86-CTPb5308-ar_EG/admin.Windows_Vista.x86/Windows_Swing_Keyboard_ar/

        Attachments

          Activity

            People

            • Assignee:
              dcherepanov Dmitry Cherepanov
              Reporter:
              malobo Mangala Lobo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: