8130253: ObjectStreamClass.getFields too restrictive
authorchegar
Fri, 03 Jul 2015 14:40:49 +0100
changeset 33291 b57cd65fbe99
parent 33290 f035b59aaf61
child 33292 4d2290a6ce1f
8130253: ObjectStreamClass.getFields too restrictive Reviewed-by: igerasim, skoivu
jdk/src/java.base/share/classes/java/io/ObjectStreamClass.java
--- a/jdk/src/java.base/share/classes/java/io/ObjectStreamClass.java	Tue Jun 30 14:22:31 2015 -0700
+++ b/jdk/src/java.base/share/classes/java/io/ObjectStreamClass.java	Fri Jul 03 14:40:49 2015 +0100
@@ -845,7 +845,6 @@
      * returned.
      */
     ObjectStreamField[] getFields(boolean copy) {
-        requireInitialized();
         return copy ? fields.clone() : fields;
     }