src/java.base/share/classes/java/lang/Enum.java
changeset 59142 c4be5e03aff7
parent 57956 e0b8b019d2f5
--- a/src/java.base/share/classes/java/lang/Enum.java	Wed Nov 20 08:12:14 2019 +0800
+++ b/src/java.base/share/classes/java/lang/Enum.java	Tue Nov 19 16:26:58 2019 -0800
@@ -47,6 +47,13 @@
  * found in section 8.9 of
  * <cite>The Java&trade; Language Specification</cite>.
  *
+ * Enumeration types are all serializable and receive special handling
+ * by the serialization mechanism. The serialized representation used
+ * for enum constants cannot be customized. Declarations of methods
+ * and fields that would otherwise interact with serialization are
+ * ignored, including {@code serialVersionUID}; see the <cite>Java
+ * Object Serialization Specification</cite> for details.
+ *
  * <p> Note that when using an enumeration type as the type of a set
  * or as the type of the keys in a map, specialized and efficient
  * {@linkplain java.util.EnumSet set} and {@linkplain