-
Bug
-
Resolution: Unresolved
-
P4
-
11, 21, 24, 25
The java/awt/font/Gurmukhi/TestGurmukhi.java test is an automatic test for JDK-5004101 which can be open-sourced.
The test commented out code for displaying Gurmukhi text in a JTextArea.
It proves displaying the text isn't necessary, creating a TextLayout and getting TextHitInfo is enough to reproduce the original bugJDK-5004101.
The above is confirmed by running the TestGurmukhi.java test with JDK 5.0 beta-b32c:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 186
at sun.font.ExtendedTextSourceLabel.caretAtOffsetIsValid(ExtendedTextSourceLabel.java:446)
at java.awt.font.TextLine.caretAtOffsetIsValid(TextLine.java:498)
at java.awt.font.TextLayout.hitTestChar(TextLayout.java:2552)
at java.awt.font.TextLayout.hitTestChar(TextLayout.java:2611)
at TestGurmukhi.main(TestGurmukhi.java:53)
The test commented out code for displaying Gurmukhi text in a JTextArea.
It proves displaying the text isn't necessary, creating a TextLayout and getting TextHitInfo is enough to reproduce the original bug
The above is confirmed by running the TestGurmukhi.java test with JDK 5.0 beta-b32c:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 186
at sun.font.ExtendedTextSourceLabel.caretAtOffsetIsValid(ExtendedTextSourceLabel.java:446)
at java.awt.font.TextLine.caretAtOffsetIsValid(TextLine.java:498)
at java.awt.font.TextLayout.hitTestChar(TextLayout.java:2552)
at java.awt.font.TextLayout.hitTestChar(TextLayout.java:2611)
at TestGurmukhi.main(TestGurmukhi.java:53)
- relates to
-
JDK-8352877 Opensource Several Font related tests - Batch 1
-
- Open
-
-
JDK-5004101 Gurmukhi Input to Swing TextComponent throws ArrayIndexOutOfBounds
-
- Resolved
-