Class ObjectSerializationChecker

  • All Implemented Interfaces:
    IObjectChecker

    public class ObjectSerializationChecker
    extends AbstractObjectChecker
    An implementation of IObjectChecker that checks whether the object implements Serializable interface

    Note: There is a system property -Dsun.io.serialization.extendedDebugInfo=true that could give even more debug information.

    • Constructor Detail

      • ObjectSerializationChecker

        public ObjectSerializationChecker()
        A constructor to use when the checker is used before a previous attempt to serialize the object.
      • ObjectSerializationChecker

        public ObjectSerializationChecker​(NotSerializableException cause)
        A constructor to use when there was a previous attempt to serialize the object and it failed with the cause.
        Parameters:
        cause - the cause of the serialization failure in a previous attempt.