mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 15:39:29 +00:00
Prior to this commit, `CreateFileState.onComplete()` would only set its own `completed` flag. If `fileCreated()` had already switched to `WritingFileState`, the flag was written to a superseded state and the completion signal was lost, so the part was never emitted. This commit re-reads the current state after setting the flag and delegates to it when it has changed, as `WritingFileState` does. Fixes gh-37409