-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Chris Bonham opened SPR-7736 and commented
In the CacheAspectSupport class, if an EmptyHolder object is returned from the Cache, a ClassCastException can occur if the calling method expects a different type of object. I have created a patch that returns null if the EmptyHolder is returned. The check uses the EmptyHolder class since the actual EmptyHolder object could be from a separate JVM so an identity comparision with NULL_OBJECT won't work.
Affects: 3.1 M1
Attachments:
- EmptyHolder.patch (750 bytes)
Referenced from: commits 8285e9c
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug