Author: rmannibucau
Date: Sun Feb  4 14:58:34 2018
New Revision: 1823098

URL: http://svn.apache.org/viewvc?rev=1823098&view=rev
Log:
ensure we say which beans are conflicting when we fail - just an exception 
message clarification

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

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=1823098&r1=1823097&r2=1823098&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 Feb  4 14:58:34 2018
@@ -407,7 +407,8 @@ public class BeanManagerImpl implements
             Bean<?> oldBean = passivationBeans.putIfAbsent(id, bean);
             if (oldBean != null)
             {
-                throw new DuplicateDefinitionException("PassivationCapable 
bean id is not unique: " + id + " bean:" + bean);
+                throw new DuplicateDefinitionException("PassivationCapable 
bean id is not unique: " +
+                        id + " bean:" + bean + ", existing: " + oldBean);
             }
         }
     }


Reply via email to