Title: PySet doesn't support Java serialization
Type: behaviour Severity: normal
Components: Core Versions: 2.5.0
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pjenvey Nosy List: pjenvey, tsirkia
Priority: Keywords:

Created on 2009-12-02.12:11:17 by tsirkia, last changed 2009-12-03.03:22:38 by pjenvey.

msg5337 (view) Author: (tsirkia) Date: 2009-12-02.12:11:16
I found a bug related to PySet while I tried to serialize it. I explored
the source code and found the reason inside ConcurrentHashSet.

public class ConcurrentHashSet<E> extends AbstractSet<E> implements
Serializable {

    private final ConcurrentMap<E, Object> map;
    private transient Set<E> keySet;
    private static final Object PRESENT = new Object();

That ConcurrentMap can't be serialized because Object is not
serializable class. Could it be possible to change it for example PyObject?
msg5339 (view) Author: Philip Jenvey (pjenvey) Date: 2009-12-03.03:22:37
fixed in r6954
Date User Action Args
2009-12-03 03:22:38pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg5339
title: PySet cannot be serialized -> PySet doesn't support Java serialization
2009-12-02 20:26:18pjenveysetassignee: pjenvey
nosy: + pjenvey
2009-12-02 12:11:17tsirkiacreate