openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1157675 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans: component/AbstractOwbBean.java container/BeanManagerImpl.java
Date Sun, 14 Aug 2011 21:46:52 GMT
Author: gpetracek
Date: Sun Aug 14 21:46:52 2011
New Revision: 1157675

URL: http://svn.apache.org/viewvc?rev=1157675&view=rev
Log:
OWB-604 more details for exceptions during bootstrapping

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java?rev=1157675&r1=1157674&r2=1157675&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
Sun Aug 14 21:46:52 2011
@@ -714,7 +714,8 @@ public abstract class AbstractOwbBean<T>
                         }
                         throw new WebBeansConfigurationException(
                                 "Passivation capable beans must satisfy passivation capable
dependencies. " +
-                                "Bean : " + toString() + " does not satisfy.");
+                                "Bean : " + toString() + " does not satisfy. Details about
the Injection-point: " +
+                                        injectionPoint.toString());
                     }
                 }
             }            

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java?rev=1157675&r1=1157674&r2=1157675&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Sun Aug 14 21:46:52 2011
@@ -1139,7 +1139,7 @@ public class BeanManagerImpl implements 
             {
                 if (!bean.getScope().equals(Dependent.class))
                 {
-                    throw new WebBeansConfigurationException("Bean " + bean.getBeanClass()
+ "scope can not define other scope except @Dependent to inject InjectionPoint");
+                    throw new WebBeansConfigurationException("Bean " + bean.getBeanClass()
+ " scope can not define other scope except @Dependent to inject InjectionPoint");
                 }
             }
         }



Mime
View raw message