public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic
@ 2004-07-29 21:10 mark at gcc dot gnu dot org
  2005-08-24 23:49 ` [Bug awt/16825] need to reimplement QuadCurve2D.solveQuadratic fitzsim at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-07-29 21:10 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-02 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16825-3639@http.gcc.gnu.org/bugzilla/>
2006-08-02 10:56 ` [Bug awt/16825] need to reimplement QuadCurve2D.solveQuadratic aph at gcc dot gnu dot org
2004-07-29 21:10 [Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic mark at gcc dot gnu dot org
2005-08-24 23:49 ` [Bug awt/16825] need to reimplement QuadCurve2D.solveQuadratic fitzsim at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).