Skip to content

Commit f5aeb81

Browse files
committed
SerializedBeanFactoryReference falls back to dummy with specific id
Issue: SPR-17508
1 parent 02d3cfa commit f5aeb81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,9 @@ private Object readResolve() {
17481748
}
17491749
}
17501750
// Lenient fallback: dummy factory in case of original factory not found...
1751-
return new DefaultListableBeanFactory();
1751+
DefaultListableBeanFactory dummyFactory = new DefaultListableBeanFactory();
1752+
dummyFactory.serializationId = this.id;
1753+
return dummyFactory;
17521754
}
17531755
}
17541756

0 commit comments

Comments
 (0)