* java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
authorBryce McKinlay <bryce@albatross.co.nz>
Mon, 11 Dec 2000 04:54:55 +0000 (04:54 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Mon, 11 Dec 2000 04:54:55 +0000 (04:54 +0000)
From-SVN: r38185

libjava/ChangeLog
libjava/java/util/Hashtable.java

index b4148b58dd359bc7755829b7468f8fa14ea8ccf6..de5d58dbb99d7707dd51c83c5c21d3732a3f6496 100644 (file)
@@ -2,6 +2,8 @@
 
        * configure.in: Remove check for -fuse-divide-subroutine.
        * configure: Rebuilt.
+       
+       * java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
 
 2000-12-11  Bryce McKinlay  <bryce@albatross.co.nz>
 
index 92fa48f1958ce246b04b003c7279db6ff8a82f39..3a263b7a94acf99c69b014e101905c6ef5be679c 100644 (file)
@@ -64,8 +64,8 @@ import java.io.ObjectOutputStream;
  * @author      Jon Zeppieri
  * @author     Warren Levy
  * @author      Bryce McKinlay
- * @version     $Revision: 1.6 $
- * @modified    $Id: Hashtable.java,v 1.6 2000/08/19 18:19:42 green Exp $
+ * @version     $Revision: 1.7 $
+ * @modified    $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $
  */
 public class Hashtable extends Dictionary 
   implements Map, Cloneable, Serializable
@@ -724,8 +724,8 @@ public class Hashtable extends Dictionary
    * as per the Javasoft spec.
    *
    * @author       Jon Zeppieri
-   * @version      $Revision: 1.8 $
-   * @modified     $Id: HashMap.java,v 1.8 2000/10/26 10:19:00 bryce Exp $
+   * @version      $Revision: 1.7 $
+   * @modified     $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $
    */
   class HashIterator implements Iterator
   {
@@ -829,8 +829,8 @@ public class Hashtable extends Dictionary
    * hashtable during enumeration causes indeterminate results.  Don't do it!
    *
    * @author       Jon Zeppieri
-   * @version      $Revision: 1.6 $
-   * @modified $Id: Hashtable.java,v 1.6 2000/08/19 18:19:42 green Exp $ */
+   * @version      $Revision: 1.7 $
+   * @modified $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $ */
   class Enumerator implements Enumeration
   {
     static final int KEYS = 0;
@@ -862,7 +862,7 @@ public class Hashtable extends Dictionary
       if (count >= size)
         throw new NoSuchElementException();
       count++;
-      HashMap.Entry e;
+      HashMap.Entry e = null;
       if (last != null)
         e = last.next;