I found that it does not match between the following code.

https://github.com/spring-projects/spring-framework/blob/274db2f7a934c1558eee25809ceab3982ab73e1c/spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java#L692-L695

https://github.com/spring-projects/spring-framework/blob/274db2f7a934c1558eee25809ceab3982ab73e1c/spring-context/src/main/java/org/springframework/context/support/ApplicationContextAwareProcessor.java#L82-L85

Should the ApplicationStartup in the first code be changed to ApplicationStartupAware?