8130253: ObjectStreamClass.getFields too restrictive

Reviewed-by: igerasim, skoivu
This commit is contained in:
Chris Hegarty 2015-07-03 14:40:49 +01:00
parent 22b80848d1
commit 391696a6f8

View File

@ -845,7 +845,6 @@ public class ObjectStreamClass implements Serializable {
* returned. * returned.
*/ */
ObjectStreamField[] getFields(boolean copy) { ObjectStreamField[] getFields(boolean copy) {
requireInitialized();
return copy ? fields.clone() : fields; return copy ? fields.clone() : fields;
} }