Index: org/postgis/Point.java
===================================================================
RCS file: /home/cvs/postgis/postgis/jdbc2/src/org/postgis/Point.java,v
retrieving revision 1.11
diff -u -r1.11 Point.java
--- org/postgis/Point.java	16 Nov 2005 13:04:30 -0000	1.11
+++ org/postgis/Point.java	9 May 2006 14:12:34 -0000
@@ -45,14 +45,14 @@
         return (int) (v ^ (v >>> 32));
     }
 
-    protected boolean equalsintern(Geometry otherg) {
-        Point other = (Point) otherg;
-        return equals(other);
-    }
-
-    public final boolean equals(Point other) {
-        boolean xequals = x == other.x;
-        boolean yequals = y == other.y;
+    public boolean equals(Object obj) {
+    	if (!(obj instanceof Point)) return false;    	
+    	if (!super.equals(obj)) return false;
+
+    	Point other = (Point)obj;
+    	
+    	boolean xequals = (x == other.x);
+        boolean yequals = (y == other.y);
         boolean zequals = ((dimension == 2) || (z == other.z));
         boolean mequals = ((haveMeasure == false) || (m == other.m));
         boolean result = xequals && yequals && zequals && mequals;

