switched from readResolve to readObject

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4665 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Juergen Hoeller 2011-07-04 21:21:33 +00:00
parent 655754e421
commit 1ccdc8b717
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@
package org.springframework.beans.factory.support;
import java.io.IOException;
import java.io.NotSerializableException;
import java.io.ObjectInputStream;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.lang.annotation.Annotation;
@ -944,7 +946,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
// Serialization support
//---------------------------------------------------------------------
protected Object readResolve() throws ObjectStreamException {
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
throw new NotSerializableException("DefaultListableBeanFactory itself is not deserializable - " +
"just a SerializedBeanFactoryReference is");
}