[webbeans-commits] Webbeans SVN: r1677 - ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Tue Feb 24 07:41:34 EST 2009


Author: pete.muir at jboss.org
Date: 2009-02-24 07:41:34 -0500 (Tue, 24 Feb 2009)
New Revision: 1677

Modified:
   ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java
Log:
better exception

Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java	2009-02-24 12:03:56 UTC (rev 1676)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/BeanValidator.java	2009-02-24 12:41:34 UTC (rev 1677)
@@ -86,11 +86,11 @@
                Set<?> resolvedBeans = manager.resolveByType(type, bindings);
                if (resolvedBeans.isEmpty())
                {
-                  throw new UnsatisfiedDependencyException("The injection point " + injectionPoint + " has unsatisfied dependencies for type " + type + " and binding types " + bindings + " in " + bean);
+                  throw new UnsatisfiedDependencyException("The injection point " + injectionPoint + " in " + bean + " has unsatisfied dependencies");
                }
                if (resolvedBeans.size() > 1)
                {
-                  throw new AmbiguousDependencyException("The injection point " + injectionPoint + " has ambiguous dependencies for type " + type + " and binding types " + bindings + " in " + bean);
+                  throw new AmbiguousDependencyException("The injection point " + injectionPoint + " in " + bean + " has ambiguous dependencies");
                }
                Bean<?> resolvedBean = (Bean<?>) resolvedBeans.iterator().next();
                if (MetaDataCache.instance().getScopeModel(resolvedBean.getScopeType()).isNormal() && !Proxies.isTypeProxyable(type))




More information about the weld-commits mailing list