Author: akazakov
Date: 2012-08-15 20:28:31 -0400 (Wed, 15 Aug 2012)
New Revision: 43062
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-10611 As-you-type CDI validation
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 2012-08-16
00:18:27 UTC (rev 43061)
+++
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2012-08-16
00:28:31 UTC (rev 43062)
@@ -668,7 +668,7 @@
validateProducer(context, (IProducer) bean);
}
- Collection<IInjectionPoint> points = bean.getInjectionPoints();
+ Collection<IInjectionPoint> points = bean instanceof IClassBean?
((IClassBean)bean).getInjectionPoints(false):bean.getInjectionPoints();
for (IInjectionPoint point : points) {
if(!isAsYouTypeValidation()) {
IType type = getTypeOfInjection(point);