-
Bug
-
Resolution: Unresolved
-
P4
-
1.3.0, 5.0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
-
generic, x86, sparc
-
generic, solaris_9, solaris_10
tested java version:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
TextMeasurer deleteChar function will get exception if you try to delete more than one characters.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.awt.font.TextMeasurer.deleteChar(TextMeasurer.java:721)
at TextMeasureDeleteTest.main(TextMeasureDeleteTest.java:31)
It seems that source array index was set wrong if the deleted characters > 1.
See attached test case.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
TextMeasurer deleteChar function will get exception if you try to delete more than one characters.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.awt.font.TextMeasurer.deleteChar(TextMeasurer.java:721)
at TextMeasureDeleteTest.main(TextMeasureDeleteTest.java:31)
It seems that source array index was set wrong if the deleted characters > 1.
See attached test case.
- csr for
-
JDK-8194909 TextMeasurer/deleteChar function fails when deleting more than one characters.
- Draft
- duplicates
-
JDK-5064838 TextMeasurer/delete function fails when deleting more than one characters.
- Closed
-
JDK-5064843 TextMeasurer/delete function fails when deleting more than one characters.
- Closed