ClasspathXmlApplicationContext cannot be closed twice [SPR-13425] #18004
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Eric Vigeant opened SPR-13425 and commented
Here is some simple code that will show the pattern:
I traced it down to the "closed" field in AbstractApplicationContext, it is initialized to false, it is set to true when closing, but it is never set again to false after it is restarted. This causes the doClose() method to do nothing.
Affects: 4.1.7, 4.2 GA
Issue Links:
Referenced from: commits 811de8e, 57125c0
Backported to: 4.1.8
The text was updated successfully, but these errors were encountered: