You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I took a look at the codegen code and found it trivial to change the field to private final transient in all cases.
In the end, this would be all I need. My proposal was only for the case that some folks rely on the previous behaviour.
So if you are satisfied with only making it private final transient I can do a pull request.
If you want to implement "Only (code)generate propertyChangeSupport field if it does not already exist" aswell, then I think I would need some words from you how to go about it.
As soon as a Bean property gets
set = "bound"
the code generator generates:private PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);
And then I cannot save my Bean to mongo anymore (I use morphia), the error is:
Caused by: org.mongodb.morphia.mapping.MappingException: Error mapping field:java.beans.PropertyChangeSupport.map
I also cannot mark propertyChangeSupport transient, because it gets overwritten by the code generator.
How could this be solved? My (amateur) idea is in the topic.
The text was updated successfully, but these errors were encountered: