Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] serialversionuid

Hi All

I have a question about the following statement in the FAQs (http://www.eclipse.org/aspectj/doc/released/faq.html#q:serialversionuid):

13. 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 .

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 of this???

Thanks Chris


Attention: This email may contain information intended for the sole use of the original recipient. Please respect this when sharing or disclosing this email's contents with any third party. If you believe you have received this email in error, please delete it and notify the sender or postmaster@xxxxxxxxxxxxxxxxxxxxx as soon as possible. The content of this email does not necessarily reflect the views of SolNet Solutions Ltd.

Back to the top