Closed
Description
Richard Fearn opened SPR-14897 and commented
getBeanDefinitionNames
leaks the getBeanDefinitionNames
array to callers. It's possible for the caller to modify the array, which affects Spring's internal list of the names of beans in the context.
Affects: 4.3.4
Attachments:
- Spr14897Test.java (732 bytes)
Issue Links:
- DefaultListableBeanFactory should allow efficient access to current bean names [SPR-12404] #17012 DefaultListableBeanFactory should allow efficient access to current bean names
- DefaultListableBeanFactory.copyConfigurationFrom should provide independent AutowireCandidateResolver instance [SPR-14921] #19488 DefaultListableBeanFactory.copyConfigurationFrom should provide independent AutowireCandidateResolver instance