DefaultListableBeanFactory falls back to empty DLBF instance on deserialization

Issue: SPR-15766
(cherry picked from commit c9ffa64)
master
Juergen Hoeller 7 years ago
parent 6d7612e052
commit fd2b4f2427
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

@ -1589,7 +1589,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
}
}
// Lenient fallback: dummy factory in case of original factory not found...
return new StaticListableBeanFactory(Collections.<String, Object> emptyMap());
return new DefaultListableBeanFactory();
}
}

Loading…
Cancel
Save