-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0
-
None
-
sparc
-
solaris_9
tested java version:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
TextMeasurer delete 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.
Sorry. close this bug due to my bugtraq was giving me error message for attachment.
summit the bug earlier. it was
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b56)
TextMeasurer delete 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.
Sorry. close this bug due to my bugtraq was giving me error message for attachment.
summit the bug earlier. it was
- duplicates
-
JDK-5064835 TextMeasurer/deleteChar function fails when deleting more than one characters.
- Open