Name: iaR10016 Date: 05/06/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b22, JDK1.5.0-b05, JDK1.4.1
JCK : JCK1.4a-runtime
Platform[s] : all
switch/Mode : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: api/java_awt/interactive/GraphicsTests.html#GraphicsTests [GraphicsTest0001]
It seems like nethods Graphics.fillPolygon(int, int, int),
Graphics.fillRoundRect(int, int, int, int, int, int), Graphics.drawRoundRect(int, int, int, int, int, int)
works incorrectly with big numbers.
Please, run the script below and do the following steps to reprodyce the failure:
1. set tested Width and Height for Clip area to "2147483647" (max integer number) and click "Apply" button
2. Select "RoundRect" in "Area" choice list, set (for example) Height to 2000000 and click "Apply".
RoundRect does not look as expected.
3. Click "Fill" and then click "Apply".
Filled RoundRect does not look as expected.
4. Select "Poligon" in "Area" choice list, set (for example) X3 to "2000000" and click "Apply".
Poligon looks as expected.
Click "Fill" and then click "Apply".
Filled poligon does not look as expected.
Test source location:
jtr file location:
How to reproduce:
Run the following script (you may need to change it's variables)
--- script start ---
$JDK/bin/java javasoft.sqe.tests.api.java.awt.interactive.GraphicsTests -TestCaseID GraphicsTest0001 -TestDirURL file:$JCK/tests/api/java_awt/interactive/GraphicsTests.html
--- script end ---
Specific machine info:
OS: RedHat Linux 8.0