summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-19 00:37:50 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-12-19 00:37:50 +0000
commitec47f739052b575319d8f1d9f51941a0a7b694d4 (patch)
tree053f6fd3bebbf060ffa44948241123362f7a94aa
parent6147a971f288cb4e376816c3e6517ef734d856a8 (diff)
downloadclasspath-ec47f739052b575319d8f1d9f51941a0a7b694d4.tar.gz
2006-12-19 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/lang/Enum.java: (finalize()): Implemented.
-rw-r--r--ChangeLog5
-rw-r--r--java/lang/Enum.java10
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f76da5b57..752db8ccc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-19 Andrew John Hughes <gnu_andrew@member.fsf.org>
+
+ * java/lang/Enum.java:
+ (finalize()): Implemented.
+
2006-12-18 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/lang/management/BeanImpl.java:
diff --git a/java/lang/Enum.java b/java/lang/Enum.java
index f141619be..84e1840bb 100644
--- a/java/lang/Enum.java
+++ b/java/lang/Enum.java
@@ -220,4 +220,14 @@ public abstract class Enum<T extends Enum<T>>
k = k.getSuperclass();
return k;
}
+
+ /**
+ * Enumerations can not have finalization methods.
+ *
+ * @since 1.6
+ */
+ protected final void finalize()
+ {
+ }
+
}