@Async isn't applied, if the interface doesn't have concrete implementation [SPR-11910] #16529
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Artem Bilan opened SPR-11910 and commented
If we add
@Async
fo the interface method, but don't provide an implementation for the interface, we and end up with issue, when@Async
can't be applied andjava.lang.IllegalArgumentException: Class must not be null
is thrown.Can't we use the same
AutoProxyRegistrar
technique for@Async
as it is for@Transactional
?I mean build a new Proxy independently of target bean state.
I understand that
AsyncExecutionAspectSupport
should be the first one in the chain, but it looks like we have a limitation on the matter, if we don't provide a real implementation for our annotated interface.The Spring Integration infrastructure just creates proxy fo the provided interface and that's all.
See linked issue INT-3448
Affects: 4.0.5
Issue Links:
@Async
method throws NullPointerException ("is depended on by")The text was updated successfully, but these errors were encountered: