re PR libgcj/6187 (method distance of class java.awt.geom.Point2D causes infinite recursion)

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
This commit is contained in:
Alberto Biancardi 2002-04-08 16:43:35 +02:00 committed by Tom Tromey
parent 224e6091b4
commit 62afca269c
2 changed files with 7 additions and 1 deletions

View 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.

View 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)