Hi,
This is the 1st time I'm using Castor. It seems quite a complete product, but I have
faced with some problems when trying to serialize a simple class:
1- If a field name contains non-English characters, their are not converted according
to the UTF8 encoding. The generated XML file has in its header the UTF8 encoding.
2- If my class has static fields, it complains that it cannot marshall it. I have
used no mapping file.
Maybe, it would be a better behaviour to ignore static fields.
The workaround I have used is to inherit my class from an interface that declares
final variables.
3- I have the following class:
class A {
boolean[] diasSemana = new boolean[7];
....
}
It marshalls ok instances of this class, but when unmarshalling happens, it creates an
array of 14 elements.
If I uncomment the field initializer, it works ok.
4- How can I handle the versioning of marshalled instances, and make it compatible
with future releases of my class?
I can add new fields of info, delete others, ...
*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user