summaryrefslogtreecommitdiff
path: root/databases/db3/patches/patch-ae
blob: 0256c9173f800c9c547699a1365bd735542aa469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ae,v 1.2 2006/06/30 11:22:04 joerg Exp $

Since Java 1.5, "enum" is a keyword.

--- ../java/src/com/sleepycat/db/DbEnv.java.orig	2001-07-03 23:08:49.000000000 +0200
+++ ../java/src/com/sleepycat/db/DbEnv.java	2006-06-26 11:48:55.000000000 +0200
@@ -78,9 +78,9 @@
     //
     /*package*/ void _notify_dbs()
     {
-        Enumeration enum = dblist_.elements();
-        while (enum.hasMoreElements()) {
-            Db db = (Db)enum.nextElement();
+        Enumeration e = dblist_.elements();
+        while (e.hasMoreElements()) {
+            Db db = (Db)e.nextElement();
             db._notify_dbenv_close();
         }
         dblist_.removeAllElements();