private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
  s.defaultReadObject();
  if (!methodConstraintsSpecified && methodConstraints != null) {
    throw new InvalidObjectException("Method constraints not specified but not null");
  }
  if (permissions == null) {
    throw new InvalidObjectException("Permissions cannot be null");
  }
  for (int i=permissions.length; --i >= 0; ) {
    if (permissions[i] == null) {
      throw new InvalidObjectException("Permission cannot be null");
    }
  }
}

private void readObject ( ObjectInputStream s ) throws IOException , ClassNotFoundException { s . defaultReadObject ( ) ; if ( ! methodConstraintsSpecified && methodConstraints != null ) { throw new InvalidObjectException ( "Method constraints not specified but not null" ) ; } if ( permissions == null ) { throw new InvalidObjectException ( "Permissions cannot be null" ) ; } for ( int i = permissions . length ; -- i >= 0 ; ) { if ( permissions [ i ] == null ) { throw new InvalidObjectException ( "Permission cannot be null" ) ; } } }
verifies that fields have legal values .
