We are using Skaringa r3p5. When trying to serialize java.util.BitSet, a ClassCastExeption is thrown:
java.lang.ClassCastException
at com.skaringa.javaxml.serializers.CollectionSerializer.serialize(Unknown Source)
at com.skaringa.javaxml.serializers.SetSerializer.serialize(Unknown Source)
at com.skaringa.javaxml.serializers.ObjectSerializer.inspectObject(Unknown Source)
at com.skaringa.javaxml.serializers.ObjectSerializer.serialize(Unknown Source)
at com.skaringa.javaxml.serializers.MapEntrySerializer.serialize(Unknown Source)
at com.skaringa.javaxml.serializers.MapSerializer.serialize(Unknown Source)
at com.skaringa.javaxml.serializers.ObjectSerializer.inspectObject(Unknown Source)
at com.skaringa.javaxml.serializers.ObjectSerializer.serialize(Unknown Source)
at com.skaringa.javaxml.handler.sax.ObjectXMLReader.parseObject(Unknown Source)
at com.skaringa.javaxml.handler.sax.AbstractXMLReader.parse(Unknown Source)
at com.skaringa.javaxml.impl.sax.ObjectTransformerSAXImpl.transform(Unknown Source)
at com.skaringa.javaxml.impl.sax.ObjectTransformerSAXImpl.serialize(Unknown Source)
Obviously, a SetSerializer is used, although a BitSet is not really a Set, i.e. it does not implement the Set interface.
I would assume that an ObjectSerializer is used for BitSet.
Is there any workaround?
If not, could you please provide a bugfix for this issue.