Message5337

Author tsirkia
Recipients tsirkia
Date 2009-12-02.12:11:16
SpamBayes Score 8.2343284e-08
Marked as misclassified No
Message-id <1259755877.9.0.231730455744.issue1511@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-12-02 12:11:18tsirkiasetrecipients: + tsirkia
2009-12-02 12:11:17tsirkiasetmessageid: <1259755877.9.0.231730455744.issue1511@psf.upfronthosting.co.za>
2009-12-02 12:11:17tsirkialinkissue1511 messages
2009-12-02 12:11:16tsirkiacreate