mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
41e5d55d52
Prior to this change, @Autowired injection against an instance of a subclass having different visibility than its superclass would fail if the @Autowired method is declared only in the superclass. This is due to an apparent change in the rules around bridge method generation between Java 5 and Java 6, and possibly even varying across compiler vendors. Now, BridgeMethodResolver is used consistently when detecting @Autowired, @Inject and @Resource metadata to bypass these bridge methods if they exist. Issue: SPR-7900