This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16825] New: Bad results for QuadCurve2D.solveQuadratic


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]