Skip to content

Support @Cache* as merged composed annotations [SPR-13475] #18054

Closed
@spring-projects-issues

Description

@spring-projects-issues

Nicolas Labrot opened SPR-13475 and commented

Given this composed annotation:

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Cacheable
public @interface MyCacheable {
	String[] cacheNames() default {};
	String key() default "";
}

The resulting @Cacheable attributes are not merged. Issue seems to come from SpringCacheAnnotationParser#parseCacheAnnotations which does not use AnnotatedElementUtils.findMergedAnnotation(*, Cacheable.class);.


Affects: 4.2 GA

Issue Links:

Referenced from: commits ea09e57, 59c88eb, 54703bf

1 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions