Constructor accessibility checks for deserialization
AssigneeOracle International Corporation
InventorsStuart Warren Marks, Alan Bateman
Life of this patent
Estimating the term…
Abstract
Techniques for performing constructor accessibility checks during deserialization are disclosed. A system receives a command that requires deserializing a serialized object of a target type. The system determines an ancestor type of the target type. Without calling any constructors and regardless of whether the ancestor type is serializable, the system determines whether a constructor of the ancestor type is accessible to the target type. The system deserializes the serialized object only after determining that the constructor of the ancestor type is accessible to the target type.
Claims20
One or more non-transitory machine-readable media storing instructions which, when executed by one or more processors, cause:
- receiving a command that requires deserializing a serialized object of a target type;
- determining an ancestor type of the target type;
- determining, without calling any constructors and regardless of whether the ancestor type is serializable, whether a constructor of the ancestor type is accessible to the target type;
- and
- deserializing the serialized object only after determining that the constructor of the ancestor type is accessible to the target type.
A system comprising:
- at least one device including a hardware processor;
- the system being configured to perform operations comprising:
- receiving a command that requires deserializing a serialized object of a target type;
- determining an ancestor type of the target type;
- determining, without calling any constructors and regardless of whether the ancestor type is serializable, whether a constructor of the ancestor type is accessible to the target type;
- and
- deserializing the serialized object only after determining that the constructor of the ancestor type is accessible to the target type.
A method comprising:
- receiving a command that requires deserializing a serialized object of a target type;
- determining an ancestor type of the target type;
- determining, without calling any constructors and regardless of whether the ancestor type is serializable, whether a constructor of the ancestor type is accessible to the target type;
- and
- deserializing the serialized object only after determining that the constructor of the ancestor type is accessible to the target type,
- wherein the method is performed by at least one device comprising a hardware processor.
Dependencies are inferred from the claim text.