Browse Source

DefaultListableBeanFactory falls back to empty DLBF instance on deserialization

Issue: SPR-15766
pull/1479/head
Juergen Hoeller 9 years ago
parent
commit
c9ffa64140
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

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

@ -1576,7 +1576,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto @@ -1576,7 +1576,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