switched from readResolve to readObject
This commit is contained in:
parent
57998293c8
commit
38290485de
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue