bossadvisors / 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$EmptyList #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With version 1.1 of msm-javolution-serializer a 
java.util.Collections$EmptyList cannot be deserialized. When a session is 
loaded from memcached with such an element (class attribute), this fails 
with the following exception:

Jan 4, 2010 12:11:59 AM 
de.javakaffee.web.msm.serializer.javolution.ReflectionFormat readElements
SEVERE: Could not set field value for field private final java.util.List 
org.app.SomeClass._someField                                                    

javolution.xml.stream.XMLStreamException caused by 
java.lang.IllegalAccessException: Class javolution.xml.XMLFormat can not 
access a member of class java.util.Collections$EmptyList with modifiers 
"private"                                           
        at javolution.xml.XMLFormat.newInstance(XMLFormat.java:264)                                                         
        at 
javolution.xml.XMLFormat$InputElement.readInstanceOf(XMLFormat.java:499)        

        at javolution.xml.XMLFormat$InputElement.get(XMLFormat.java:403)                                                    
        at 
de.javakaffee.web.msm.serializer.javolution.ReflectionFormat.readElements(R
eflectionFormat.java:226)

Original issue reported on code.google.com by martin.grotzke on 3 Jan 2010 at 11:16

GoogleCodeExporter commented 9 years ago
The same applies to Collections$EmptyMap.

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

GoogleCodeExporter commented 9 years ago
Fixed.

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