peichhorn/lombok-pg — Issue #62: Transient for propertySupport
Author: psysiu
Created: 2011-12-07 12:17:15+00:00
State: open

When using @BoundPropertySupport it generates
`private final java.beans.PropertyChangeSupport propertySupport = new java.beans.PropertyChangeSupport(this);`
It would be nice (maybe optional) to generate using transient to avoid beans serialisation issues:
`transient private final java.beans.PropertyChangeSupport propertySupport = new java.beans.PropertyChangeSupport(this);`

This leads to propertySupport = null problem after deserialization, it could be avoided by adding readResolve method which is called after deserialization but before the object is returned.
ANY-ACCESS-MODIFIER Object readResolve() throws ObjectStreamException {
this.propertyChange = new java.beans.PropertyChangeSupport(this);
}