Index: src/main/java/common/java/security/BasicPermissionCollection.java =================================================================== --- src/main/java/common/java/security/BasicPermissionCollection.java (revision 542786) +++ src/main/java/common/java/security/BasicPermissionCollection.java (working copy) @@ -146,20 +146,17 @@ } /** - * Expected format is the following: - *
- *
boolean all_allowed - *
This is set to true if this BasicPermissionCollection contains a - * BasicPermission with '*' as its permission name. - *
Class<T> permClass - *
The class to which all BasicPermissions in this - * BasicPermissionCollection belongs. - *
Hashtable<K,V> permissions - *
The BasicPermissions in this BasicPermissionCollection. All - * BasicPermissions in the collection must belong to the same class. The - * Hashtable is indexed by the BasicPermission name; the value of the - * Hashtable entry is the permission. - *
+ * Writes the object to the given stream for serialization. + * + * The following fields are stored via an ObjectOutputStream.PutField, + * obtained by calling putFields() on the given output stream, in order to + * comply with the serialized form specification for this class: + * + * boolean all_allowed, set to allEnabled + * Hashtable permissions, + * set to items + * Class permClass, set to + * permClass */ private void writeObject(java.io.ObjectOutputStream out) throws IOException { ObjectOutputStream.PutField fields = out.putFields();