Hi,

There is a small bug in the equals method of Hashtable.
The method does check if the supplied object is an instance of Hashtable
but forgets to return false if it isn't.

Bye,

Mark
Index: java/util/Hashtable.java
===================================================================
RCS file: /gd/gnu/anoncvsroot/classpath/java/util/Hashtable.java,v
retrieving revision 1.3
diff -u -r1.3 Hashtable.java
--- Hashtable.java      1999/08/14 14:49:50     1.3
+++ Hashtable.java      1999/12/21 12:29:35
@@ -569,7 +569,9 @@
                                    return false;
                            }
                    }
-           }
+       } else {
+               return false;
+       }
        return true;
     }
 

Reply via email to