cnzz / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

msm-javolution-serializer should support serialization of java.util.Collections$UnmodifiableMap #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
msm-javolution-serializer in version 1.1 does not support deserialization 
of java.util.Collections$UnmodifiableMap, this fails with this exception:

Jan 4, 2010 1:29:34 AM 
de.javakaffee.web.msm.serializer.javolution.ReflectionFormat readElements
SEVERE: Could not set field value for field private java.util.Map 
org.app.SomeClass._someField                                                    

java.lang.UnsupportedOperationException                                         

        at java.util.Collections$UnmodifiableMap.put(Collections.java:1285)                                                 
        at 
de.javakaffee.web.msm.serializer.javolution.ReflectionBinding$XMLMapFormat.
read(ReflectionBinding.java:362)      
        at 
de.javakaffee.web.msm.serializer.javolution.ReflectionBinding$XMLMapFormat.
read(ReflectionBinding.java:329)      
        at 
javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:507)        

        at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)

Original issue reported on code.google.com by martin.grotzke on 4 Jan 2010 at 12:34

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by martin.grotzke on 4 Jan 2010 at 12:48