# HG changeset patch # User darcy # Date 1574865401 28800 # Node ID 8b6cc0bb93d06ece61bb4140bcd5618d8045891e # Parent 48b88b9c11eb7121e79edcd05925addbe1c3a31c 8234781: Update description of InvalidClassException to include more conditions Reviewed-by: alanb, chegar diff -r 48b88b9c11eb -r 8b6cc0bb93d0 src/java.base/share/classes/java/io/InvalidClassException.java --- 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 *
  • The class contains unknown datatypes *
  • The class does not have an accessible no-arg constructor + *
  • The ObjectStreamClass of an enum constant does not represent + * an enum type + *
  • Other conditions given in the Java Object Serialization + * Specification * * * @author unascribed