Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8090

SerializationDebugger does not handle classes with writeReplace correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.1, 1.5.0
    • Spark Core
    • None

    Description

      The following class with not serializable object used through writeReplace will not be caught correctly by the SerializationDebugger

      class SerializableClassWithWriteReplace()
        extends Serializable {
        private def writeReplace(): Object = {
          new NotSerializableObjectI()
        }
      }
      

      The reason is that SerializationDebugger does not check the type of the replaced object (whether serializable or not).

      Attachments

        Activity

          People

            tdas Tathagata Das
            tdas Tathagata Das
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: