Skip to content

Commit 37a50d7

Browse files
committed
SerializedBeanFactoryReference falls back to dummy with specific id
Issue: SPR-17508 (cherry picked from commit f5aeb81)
1 parent 567fcc4 commit 37a50d7

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
@@ -1610,7 +1610,9 @@ private Object readResolve() {
16101610
}
16111611
}
16121612
// Lenient fallback: dummy factory in case of original factory not found...
1613-
return new DefaultListableBeanFactory();
1613+
DefaultListableBeanFactory dummyFactory = new DefaultListableBeanFactory();
1614+
dummyFactory.serializationId = this.id;
1615+
return dummyFactory;
16141616
}
16151617
}
16161618

0 commit comments

Comments
 (0)