Artem Bilan opened SPR-12525 and commented
See the external linked discussion.
The original issue is here: http://stackoverflow.com/questions/23863716/java-how-to-resolve-generic-type-of-lambda-parameter and its related SO question.
I can confirm that using that typetools in the Spring Integration Java DSL I can avoid an extra type parameter.
From this:
.handle(Integer.class, (p, h) -> p * 2)
to this:
.<Integer>handle((p, h) -> p * 2)
This fix allow us to fix other Lambda issues, e.g. #15303
Reference URL: jhalterman/typetools#4
Issue Links:
0 votes, 8 watchers
Artem Bilan opened SPR-12525 and commented
See the external linked discussion.
The original issue is here: http://stackoverflow.com/questions/23863716/java-how-to-resolve-generic-type-of-lambda-parameter and its related SO question.
I can confirm that using that
typetoolsin the Spring Integration Java DSL I can avoid an extra type parameter.From this:
to this:
This fix allow us to fix other Lambda issues, e.g. #15303
Reference URL: jhalterman/typetools#4
Issue Links:
@Aspectaspect not correctly applied to Java 8 lambda-defined@Beans0 votes, 8 watchers