Java 8 bridge method handling can lead to false positive detection of autowired annotations [SPR-12187] #16801
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Anton Ermolenko opened SPR-12187 and commented
Not actually false, but due to https://bugs.openjdk.java.net/browse/JDK-6695379 spring tries in inject dependencies into bridge methods in Java 8.
Test for annotations - http://pastebin.com/FRVmNmm1
Results - http://pastebin.com/k9zNpTh4
Due to this spring tries to inject dependencies into bridge methods.
Test app - for Spring - https://gist.github.com/DiKeert/1144549572771a1e3f36 - works great on Java 7, fails on Java 8.
Affects: 3.2.11, 4.0.7, 4.1 GA
Reference URL: https://gist.github.com/DiKeert/1144549572771a1e3f36
Issue Links:
@Resource
injection broken under spring-framework > 4.1.0Referenced from: commits ec3967a, f4219ca, 354c3e0, 29abca5
Backported to: 4.0.8, 3.2.13
The text was updated successfully, but these errors were encountered: