David Hay opened SPR-13667 and commented
AbstractApplicationContext's implementation of isRunning() looks like this:
public boolean isRunning() {
return this.getLifecycleProcessor().isRunning();
}
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
Referenced from: commits 03585f2, 5d6aab3, e56c11c
Backported to: 4.1.9, 3.2.16