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

REGRESSION: Cannot input Hindi & Thai in any Text Editing components

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b58
    • CPU:
      generic, x86, sparc
    • OS:
      generic, linux, solaris_9, windows_nt, windows_2000, windows_xp
    • Verification:
      Verified

      Description

      Test set up:
      jdk build: b56
      GS version:GS06

      Steps to reproduce:
      1)Login to any platform(solaris/windows) in hindi / Thai locale
      2)Use GS and execute any of the text editing components for example:
      sh run_gs.sh -jdk:<jdk1.5.0-home-path> ../../src/GS/LigatureTest/JTextAreaLTest1.java
      3)Try inputting the hindi/thai characters(as per the locale in which you have logged in)
      4)Observation: As the characters are typed the entire text dissapears. Just the cursor movement can be seen.
      This happens even with the input dialog that is available when executing JDialog.

      Other related testing:
      1) Login with hindi /thai locale on any platform
      2) Execute the Notepad/Stylepad demo applications that are been provided under the jdk1.5.0/demo/jfc/ directory , using the command for example: java -jar Notepad.jar
      3)Input the hindi / thai characters
      4)Observation:
       -After typing few characters, press Enter. As you type in characters the glyphs are not seen on the text component. Only after pressing 'Enter' the entire line that you typed becomes visible
      -Even when just pressing Enter key the following exception was thrown

      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Zero length iterator passed to TextLayout constructor. at
      java.awt.font.TextLayout.(TextLayout.java:594) at com.sun.java.swing.SwingUtilities2.drawString(SwingUtilities2.java:544) at
      javax.swing.text.Utilities.paintComposedText(Utilities.java:745) at javax.swing.text.GlyphView.paint(GlyphView.java:386) at
      javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at
      javax.swing.text.BoxView.paintChild(BoxView.java:144) at javax.swing.text.BoxView.paint(BoxView.java:407) at
      javax.swing.text.ParagraphView.paint(ParagraphView.java:582) at javax.swing.text.BoxView.paintChild(BoxView.java:144) at
      javax.swing.text.BoxView.paint(BoxView.java:407) at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1351) at
      javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:642) at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:791) at
      javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:759) at javax.swing.JComponent.paintComponent(JComponent.java:740) at
      javax.swing.JComponent.paint(JComponent.java:1003) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930) at
      javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883) at
      javax.swing.JComponent._paintImmediately(JComponent.java:4826) at javax.swing.JComponent.paintImmediately(JComponent.java:4633) at
      javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451) at
      javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114) at
      java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at
      java.awt.EventDispatchThread.run(EventDispatchThread.java:110) m




      Older builds: Not found in b55. Hence Regression



      ###@###.### 2004-06-17
      ###@###.### 2004-07-20

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              idk Igor Kushnirskiy (Inactive)
              Reporter:
              malobo Mangala Lobo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: