changeset 57126:8b6cc0bb93d0

8234781: Update description of InvalidClassException to include more conditions Reviewed-by: alanb, chegar
author darcy
date Wed, 27 Nov 2019 06:36:41 -0800
parents 48b88b9c11eb
children 9186be5c78ba
files src/java.base/share/classes/java/io/InvalidClassException.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/io/InvalidClassException.java	Wed Nov 27 13:08:16 2019 +0100
+++ b/src/java.base/share/classes/java/io/InvalidClassException.java	Wed Nov 27 06:36:41 2019 -0800
@@ -33,6 +33,10 @@
  *      descriptor read from the stream
  * <LI> The class contains unknown datatypes
  * <LI> The class does not have an accessible no-arg constructor
+ * <LI> The ObjectStreamClass of an enum constant does not represent
+ *      an enum type
+ * <LI> Other conditions given in the <cite>Java Object Serialization
+ *      Specification</cite>
  * </UL>
  *
  * @author  unascribed