Marek Wiącek opened SPR-11814 and commented
The AnnotationConfigApplicationContext and AnnotationConfigWebApplicationContext classes implement methods named "scan" and "register" but lack a common supertype with declarations of these 2 methods. Please create a common interface so that "scan" and "register" can be invoked without casting a context reference to a concrete implementation.
Affects: 4.0.4
Referenced from: commits b3e3c53