-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.4.1
-
x86
-
windows_2000
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 ---
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 ---
- relates to
-
JDK-4150570 IIIMP: IllegalArgumentException generated when input Chinese on passive client
-
- Closed
-