Author: akazakov
Date: 2010-12-21 07:45:34 -0500 (Tue, 21 Dec 2010)
New Revision: 27633
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-7967
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
---
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-12-21
12:33:34 UTC (rev 27632)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-12-21
12:45:34 UTC (rev 27633)
@@ -1329,7 +1329,8 @@
*/
IType type = getTypeOfInjection(injection);
boolean instance = type!=null &&
CDIConstants.INSTANCE_TYPE_NAME.equals(type.getFullyQualifiedName());
- for (IBean bean : beans) {
+ Set<IBean> allBeans = cdiProject.getBeans(false, injection);
+ for (IBean bean : allBeans) {
if(!bean.getBeanClass().isReadOnly()) {
getValidationContext().addLinkedCoreResource(injection.getSourcePath().toOSString(),
bean.getResource().getFullPath(), false);
}