NPE thrown when calling methods with an empty @Caching annotation [SPR-14162] #18734
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
Lev Bornovalov opened SPR-14162 and commented
To reproduce:
Call the following proxied method:
This will cause the following exception:
Although you may be thinking that including an empty
@Caching
annotation is a corner-case, in our particular use-case, it's required, as we're calling a custom implementation of org.springframework.cache.interceptor.CacheInterceptor. We are doing this because the@CacheEvict
funtionality does not allow use to easily purge individual keys based on method args, etc...Affects: 3.2.16, 4.2.3
Issue Links:
@RequestHeader
HttpHeaders fails with NPE against null header valueReferenced from: commits 3d6b0ca, da11261, 33dcef3
Backported to: 3.2.17
The text was updated successfully, but these errors were encountered: