2002-04-08 Alberto Biancardi <alberto.biancardi@unipv.it>
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Apr 2002 14:43:35 +0000 (14:43 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Apr 2002 14:43:35 +0000 (14:43 +0000)
Fix for PR libgcj/6187:
* java/awt/geom/Point2D.java (distance): Call distanceSq, not
distance.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52027 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/awt/geom/Point2D.java

index 6e7ea5d..a9d1b24 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-08  Alberto Biancardi  <alberto.biancardi@unipv.it>
+
+       Fix for PR libgcj/6187:
+       * java/awt/geom/Point2D.java (distance): Call distanceSq, not
+       distance.
+
 2002-04-07  Mark Wielaard <mark@klomp.org>
 
         * java/util/AbstractMap.java (putAll): Use entrySet size.
index 135e9af..598402b 100644 (file)
@@ -69,7 +69,7 @@ public abstract class Point2D implements Cloneable
 
   static public double distance (double X1, double Y1, double X2, double Y2)
   {
-    return Math.sqrt(distance(X1, Y1, X2, Y2));
+    return Math.sqrt(distanceSq(X1, Y1, X2, Y2));
   }
 
   public double distanceSq (double PX, double PY)