-
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
Łukasz Rekucki opened SPR-10931 and commented
The following code in CommonAnnotationBeanPostProcessor.java
effectively ignores "shareable" flag on @Resource
annotation:
private class ResourceElement extends LookupElement {
protected boolean shareable = true;
public ResourceElement(Member member, PropertyDescriptor pd) {
super(member, pd);
}
@Override
protected void initAnnotation(AnnotatedElement ae) {
// ...
this.shareable = resource.shareable();
}
}
The problem is that initAnnotation()
is called from super, thus the field default is assigned later.
Affects: 3.1.2, 4.0 M3
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