[jboss-jira] [JBoss JIRA] Created: (JBSER-126) MetadataSerializationError by StackOverflowError writing Serializable objects that have writeReplace() and readResolve() implemented

Axel Großmann (JIRA) jira-events at lists.jboss.org
Mon Jun 6 06:06:59 EDT 2011


MetadataSerializationError by StackOverflowError writing Serializable objects that have writeReplace() and readResolve() implemented
------------------------------------------------------------------------------------------------------------------------------------

                 Key: JBSER-126
                 URL: https://issues.jboss.org/browse/JBSER-126
             Project: JBoss Serialization
          Issue Type: Bug
    Affects Versions: 1.0.3 GA
         Environment: Mac OS X 10.6.7 Java 1.6.0_24-b07-334
            Reporter: Axel Großmann
            Assignee: Clebert Suconic


We're experiencing MetadataSerializationError caused by StackOverflowError when we're trying to write objects of classes that
* implement Serializable
* have writeReplace() and readResolve() implemented and use _objects of the same class_ as replacement
* hold member object of private inner class implementing Serializable as well

(!) Please have a look at the attached JUnit test - it replays the problem nicely.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list