]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite...
authorAlberto Biancardi <alberto.biancardi@unipv.it>
Mon, 8 Apr 2002 14:43:35 +0000 (16:43 +0200)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 8 Apr 2002 14:43:35 +0000 (14:43 +0000)
2002-04-08  Alberto Biancardi  <alberto.biancardi@unipv.it>

Fix for PR libgcj/6187:
* java/awt/geom/Point2D.java (distance): Call distanceSq, not
distance.

From-SVN: r52027

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

index 6e7ea5d7548b9af319701a6154c034a77552bb01..a9d1b24662081b21b4361b535ba1ffd384d94fad 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 135e9afb6635e6585cd0b8a0e47784d80557f5a6..598402b00c0d141d4f22775939f0996d2a5b4dfe 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)