pkgsrc/databases/db3/patches/patch-ae
2006-06-30 11:22:04 +00:00

19 lines
678 B
Text

$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();