[jbosstools-commits] JBoss Tools SVN: r43671 - trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 13 19:47:57 EDT 2012


Author: akazakov
Date: 2012-09-13 19:47:57 -0400 (Thu, 13 Sep 2012)
New Revision: 43671

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-12601 CDI as-you-type validator should not validate injections which use supported CDI extensions and ignored by the build CDI validator.

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-09-13 23:41:38 UTC (rev 43670)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java	2012-09-13 23:47:57 UTC (rev 43671)
@@ -151,7 +151,7 @@
 			this.cdiProject = cdiProject;
 			dependencies = new Dependencies();
 			extensions = Collections.emptySet();
-			injectionValidationFeatures = Collections.emptySet();
+			injectionValidationFeatures = cdiProject.getNature().getExtensionManager().getFeatures(IInjectionPointValidatorFeature.class);
 		}
 
 		public CDIValidationContext(IProject project) {



More information about the jbosstools-commits mailing list