Red Hat Bugzilla – Bug 212921
Graphical drawing is incorrect
Last modified: 2008-04-02 18:29:50 EDT
Description of problem:
Just installed fc6, followed instructions to enable Java applets.
A very simple pie chart applet displays all wrong.
See the URL above for an example.
The referenced web page has a pointer to the source for the applet.
Version-Release number of selected component (if applicable):
java version "1.4.2"
gij (GNU libgcj) version 4.1.1 20061011 (Red Hat 4.1.1-30)
How reproducible: always
Steps to Reproduce:
1. Visit http://www.multicians.org/thvv/pie-chart.html in firefox.
The lines that should run from the center of the pie chart to the circumference
are plotted as chords of the circle instead. This leaves a big gray patch in the
center of the circle.
Try the same page on OS X or on Fedora FC5/Firefox 1.5 with Sun Java installed.
Pie chart displays as expected. Even Windows can do it, in FF or MSIE.
Assigning to Francis Kung. Francis, can you see if this is fixed on GNU
Classpath CVS HEAD?
It appears that the statement
g.fillArc(pieBorderWidth, pieBorderWidth, pieDiameter, pieDiameter, startDeg,
is not filling the triangle defined by the end points of the chord and the
center of the circle. Strange that whatever bug causes this AWT routine to fail
would not cause other failures also.
I can confirm that this bug still exists on the latest GNU Classpath. Looking
This has been fixed upstream in GNU Classpath CVS.