Serialization third-party classes with Simple XML (org.simpleframework.xml)

后端 未结 3 1591
鱼传尺愫
鱼传尺愫 2021-02-04 04:32

I have decided to use Simple XML serialization and was stucked with basic problem. I am trying to serialize java.util.UUID class instance as final field in this sma

3条回答
  •  不知归路
    2021-02-04 05:10

    I know this is a bit aold but my chance i came to the same exception.

    The actual issue is the use of the @Attribute annotation. If instead of @Attribute you put @Element the exception does not appear and the converter is used for the serialization.

    I guess it will then depend on which annotation you used that you should create a Converter or use the Marker-Transform solution. Although i do not know if this is the intendent behaviour.

提交回复
热议问题