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:
parent
224e6091b4
commit
62afca269c
@ -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>
|
2002-04-07 Mark Wielaard <mark@klomp.org>
|
||||||
|
|
||||||
* java/util/AbstractMap.java (putAll): Use entrySet size.
|
* java/util/AbstractMap.java (putAll): Use entrySet size.
|
||||||
|
@ -69,7 +69,7 @@ public abstract class Point2D implements Cloneable
|
|||||||
|
|
||||||
static public double distance (double X1, double Y1, double X2, double Y2)
|
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)
|
public double distanceSq (double PX, double PY)
|
||||||
|
Loading…
Reference in New Issue
Block a user