I can't serialize IdReferenceType using 1.0.0.M4-SNAPSHOT due to the non-transient Logger, e.g.:
I just had a look at your patch and have a question.
The fields that you mark transient are static fields. In standard java serialization, static fields are ignored.
So why should they be marked transient?
Could you give me more context, or e.g. a Test-Case, so that I can see what the problem is?
I am in an OSGi environment. As you can see from the stacktrace, the container is replacing the SLF4J logger with a Pax Logging object:
Other classes use "transient" for the static Logger as well, for example "PolicyMarshaller".
That's a little bit strange.
A static field is not intended to be transient.
The Java-Serialization-Mechanism ignores all static fields while serializing.
So in my opinion the cause of the problem is at another point.
I wrote a small test that serializes and deserializes the IdReferenceType without any problem
From my point of view it is also wrong when there are classes that have their logger static transient (e.g. in PolicyMarshaller).
What do you think?
It appears I may have been mistaken, and that the fix for has fixed the issue. Therefore, this issue can be resolved. Sorry for the noise...