From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20481 invoked by alias); 29 Jul 2004 21:10:38 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 20462 invoked by uid 48); 29 Jul 2004 21:10:37 -0000 Date: Thu, 29 Jul 2004 21:10:00 -0000 From: "mark at gcc dot gnu dot org" To: java-prs@gcc.gnu.org Message-ID: <20040729211034.16825.mark@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic X-Bugzilla-Reason: CC X-SW-Source: 2004-q3/txt/msg00149.txt.bz2 List-Id: 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