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

IllegalArgumentException thrown when input Chinese with Intelligent KuangPin IME

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      JDK: 1.4.1-rc
      OS: Windows 2000, Windows 98

      In a swing text component with "Intelligent KuangPin IME", keep typing at random to input Chinese at an "extremely fast" speed, an exception will be thrown as blow after a while.

      java.lang.IllegalArgumentException: TextHitInfo is out of range
              at java.awt.font.TextLayout.checkTextHit(Compiled Code)
              at java.awt.font.TextLayout.getCaretInfo(Compiled Code)
              at java.awt.font.TextLayout.getCaretInfo(Compiled Code)
              at sun.awt.im.CompositionArea.getCaretRectangle(Compiled Code)
              at sun.awt.im.CompositionArea.getTextLocation(Compiled Code)
              at sun.awt.im.InputMethodContext.getTextLocation(Compiled Code)
              at sun.awt.im.iiimp.IIIMPAdapter$Lookup.lookupDraw(Compiled Code)
              at sun.awt.im.iiimp.InputContext.processLookupEvent(Compiled Code)
              at sun.awt.im.iiimp.InputContext.processEvent(Compiled Code)
              at sun.awt.im.iiimp.IIIMPDispatchEvent.processProtocol(Compiled Code)
              at sun.awt.im.iiimp.IIIMPClient.getReply(Compiled Code)
              at sun.awt.im.iiimp.IIIMPClient.request(Compiled Code)
              at sun.awt.im.iiimp.IIIMPClient.processKeyEvent(Compiled Code)
              at sun.awt.im.iiimp.InputContext.deliverKeyEvent(Compiled Code)
              at sun.awt.im.iiimp.InputContext.dispatchKeyEventImpl(Compiled Code)
              at sun.awt.im.iiimp.InputContext.dispatchKeyEvent(Compiled Code)
              at sun.awt.im.iiimp.IIIMPAdapter.dispatchEvent(Compiled Code)
              at sun.awt.im.InputContext.dispatchEvent(Compiled Code)
              at sun.awt.im.InputMethodContext.dispatchEvent(Compiled Code)
              at java.awt.Component.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.LightweightDispatcher.processKeyEvent(Compiled Code)
              at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
              at java.awt.Container.dispatchEventImpl(Compiled Code)
              at java.awt.Component.dispatchEvent(Compiled Code)
              at java.awt.EventQueue.dispatchEvent(Compiled Code)
              at java.awt.EventDispatchThread.run(Compiled Code)

      --- Begin of Test code ---
      import java.awt.event.*;
      import javax.swing.*;
      import java.awt.*;

      public class InputDemo extends JFrame {
          public InputDemo()
          {
             JTextPane p = new JTextPane();
             p.setBounds(20,20,200,200);
             getContentPane().add(p);

             addWindowListener(new WindowAdapter ()
             {
                 public void windowClosing(WindowEvent e)
                 {
                     System.exit(0);
                 }
             });
          }
         
          public static void main(String[] args)
          {
              InputDemo d = new InputDemo();
              d.setBounds(200,200,400,400);
              d.show();
          }
      }
      --- End of Test code ---

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              naoto Naoto Sato
              Reporter:
              jieshe Jie Shen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: