Author: scabanovich
Date: 2012-04-23 20:54:14 -0400 (Mon, 23 Apr 2012)
New Revision: 40434
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java
Log:
JBIDE-11623
Do not add annotation @Named declared in a stereotype to the list of bean qualifiers.
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java 2012-04-24
00:40:33 UTC (rev 40433)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/impl/AbstractBeanElement.java 2012-04-24
00:54:14 UTC (rev 40434)
@@ -145,7 +145,7 @@
}
public Set<IStereotypeDeclaration> getStereotypeDeclarations() {
- return getStereotypeDeclarations(false);
+ return getStereotypeDeclarations(true);
}
public Set<IStereotypeDeclaration> getStereotypeDeclarations(boolean
includeInherited) {
@@ -167,7 +167,7 @@
Set<IStereotypeDeclaration> ds = s.getStereotypeDeclarations();
for (IStereotypeDeclaration d1: ds) {
IStereotype s1 = d1.getStereotype();
- if(s1 != null && s1.getInheritedDeclaration() != null) {
+ if(s1 != null/* && s1.getInheritedDeclaration() != null*/) {
if(!result.contains(d1) && !delta2.contains(d1)) delta2.add(d1);
}
}
@@ -203,10 +203,8 @@
result.add(d);
}
}
- IAnnotationDeclaration d = findNamedAnnotation();
- if(d instanceof IQualifierDeclaration && !result.contains(d)) {
- result.add((IQualifierDeclaration)d);
- }
+// JBIDE-11623 @Named in stereotype is not used as a bean qualifier.
+// Do not add it to the qualifier list.
}
return result;
}
Show replies by date