bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22705] java.awt.geom.GeneralPath.getCurrentPoint sometime


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22705] java.awt.geom.GeneralPath.getCurrentPoint sometimes returns wrong results
Date: 16 Oct 2005 01:26:40 -0000

The getCurrentPoint method of java.awt.geom.GeneralPath sometimes returns wrong
results. The attached Mauve test case succeeds on Sun J2SE 1.4.1_01. However,
the checks 4, 5, 6, 7, and 10 fail on Classpath cvs of 2003-10-20.

I'll fix this bug, but still want to file it so it is available for regression
tests.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2003-10-20 
14:29 -------
Fixed.

2003-10-20  Sascha Brawer  <address@hidden>

        * java/awt/geom/GeneralPath.java (getCurrentPoint): Return last
        point, not start of subpath.  Fixes Classpath bug #6075.


RCS file: /cvsroot/classpath//classpath/java/awt/geom/GeneralPath.java,v
retrieving revision 1.3
diff -u -r1.3 GeneralPath.java
--- java/awt/geom/GeneralPath.java      14 Jan 2003 21:30:39 -0000      1.3
+++ java/awt/geom/GeneralPath.java      20 Oct 2003 14:27:12 -0000
@@ -197,7 +197,7 @@
   {
     if (subpath < 0)
       return null;
-    return new Point2D.Float(points[subpath], points[subpath + 1]);
+    return new Point2D.Float(points[index - 2], points[index - 1]);
   }
   public void reset()
   {


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22705





reply via email to

[Prev in Thread] Current Thread [Next in Thread]