From 38290485ded31ba75922e442aa79157dda467df2 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Mon, 4 Jul 2011 21:21:33 +0000 Subject: [PATCH] switched from readResolve to readObject --- .../beans/factory/support/DefaultListableBeanFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java index 384cd25642..1e5dd60972 100644 --- a/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java +++ b/org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java @@ -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"); }