How does ajc interact with the serialVersionUID?
The current version of ajc can change the serialVersionUID of generated .class files as a result of weaving in advice. This is an important fact that developers using both aspects and serialization should be aware of. It is likely that a future version of the compiler will be better behaved regarding the serialVersionUID. However, changes to the serialVersionUID attribute are typically only important when using serialization for the long-term persistence of objects. Using standard Java serialization for long-term persistence has a number of drawbacks and many developers already use alternative solutions. For one possibly standard solution, see Long-Term Persistence for JavaBeans Specification .
The current version of ajc can change the serialVersionUID of generated .class files as a result of weaving in advice. This is an important fact that developers using both aspects and serialization should be aware of. It is likely that a future version of the compiler will be better behaved regarding the serialVersionUID. However, changes to the serialVersionUID attribute are typically only important when using serialization for the long-term persistence of objects. Using standard Java serialization for long-term persistence has a number of drawbacks and many developers already use alternative solutions. For one possibly standard solution, see Long-Term Persistence for JavaBeans Specification . Under what circumstances does ajc change this field? As an example, could adding a logging aspect for a run of a system have the potential to change this field so any objects created when logging was on could be incompatible with the normal Java objects? Has anyone had any problems as a result o
Related Questions
- What can I do if a child rejects my efforts to interact with him and seems more interested in engaging in self-stimulatory behaviors (e.g., patting self or objects)?
- My child dislikes having his hands touched or manipulated. How can we interact with him in a more acceptable way?
- How does ajc interact with the serialVersionUID?