AbstractApplicationContext.isRunning throws IllegalStateException when called too early [SPR-13667] #18242
AbstractApplicationContext's implementation of isRunning() looks like this:
If this method is called before the lifecycle processor has been initialized, an IllegalStateException is thrown.
It seems like the correct behavior here would be to return "false" if the lifecycle processor hasn't been initialized. If the lifecycle processor is uninitialized, the answer to the question "are you running" is "no", not "illegal state".
Affects: 3.2.15, 4.1.7