serialPersistentFields ignored if set to null

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 1.3.0
    • Component/s: core-libs
    • None

      If serialPersistentFields is defined with a value of null, serialization
      behaves as if serialPersistentFields was not defined at all. This particular
      case is not clearly addressed in the spec, but it seems intuitive that setting
      serialPersistentFields to null should have the same effect as setting it to
      an empty array of ObjectStreamFields (e.g., ObjectStreamClass.NO_FIELDS).

      Code demonstrating the bug is attached.

            Assignee:
            Andrey Ozerov
            Reporter:
            Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: