This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic
- From: "mark at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jul 2004 21:10:37 -0000
- Subject: [Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The method java.awt.geom.QuadCurve2D.solveQuadratic sometimes does not return
the right results for the following equation:
(x^2)/10 + 20x + 1000 = 0
Expected result: -100
This equation is tested by Mauve; see gnu.testlet.java.awt.geom.QuadCurve2D.
The problem occurs with various versions of gcj, compiling for IA-32. However,
it does NOT occur when executing the same Mauve testlet on jamvm, using the same
implementation for java.awt.geom.QuadCurve2D.
It turned out that a small Java test program for computing the equation's
discriminant gives a very small negative number when run on gcj/IA-32, but
exactly zero when run on jamvm or the Sun J2SE 1.4.1_01.
This bug report comes from GNU Classpath:
https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=7123
(Please see the very large audit trail there for more information.)
--
Summary: Bad results for QuadCurve2D.solveQuadratic
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: AWT
AssignedTo: fitzsim at redhat dot com
ReportedBy: mark at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16825