Browse Source

switched from readResolve to readObject

pull/7/head
Juergen Hoeller 14 years ago
parent
commit
38290485de
  1. 4
      org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

4
org.springframework.beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

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

Loading…
Cancel
Save