Java 8 default methods not detected as bean properties [SPR-14198] #18772
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Conor Gallagher opened SPR-14198 and commented
As the title suggests, Spring 4.2.5.RELEASE cannot inject into Java 8 default methods via xml context files.
I have thrown together a simple example on GitHub to demonstrate how this fails:
An egregious workaround is to reference the default method from the implementation as follows:
Also referenced on SO:
http://stackoverflow.com/questions/30477367/spring-4-cannot-execute-java-8-default-methods
Affects: 4.2.5
Reference URL: https://github.com/cjbooms/spring-default-methods
Issue Links:
@Bean
on Java 8 default methods in interfacesReferenced from: commits ce2f28d
The text was updated successfully, but these errors were encountered: