Skip to content

Commit

Permalink
WELD-62
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Nov 7, 2009
1 parent b8e85de commit b62279d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/src/main/java/org/jboss/weld/bean/ManagedBean.java
Expand Up @@ -18,8 +18,8 @@

import static org.jboss.weld.logging.Category.BEAN;
import static org.jboss.weld.logging.LoggerFactory.loggerFactory;
import static org.jboss.weld.logging.messages.BeanMessage.ERROR_DESTROYING;
import static org.jboss.weld.logging.messages.BeanMessage.DELEGATE_INJECTION_POINT_NOT_FOUND;
import static org.jboss.weld.logging.messages.BeanMessage.ERROR_DESTROYING;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -296,7 +296,7 @@ protected void checkType()
boolean passivating = manager.getServices().get(MetaAnnotationStore.class).getScopeModel(scopeType).isPassivating();
if (passivating && !Reflections.isSerializable(getBeanClass()))
{
throw new DefinitionException("Simple bean declaring a passivating scope must have a serializable implementation class " + toString());
throw new DefinitionException("Managed bean declaring a passivating scope must have a serializable implementation class. Bean: " + toString());
}
if (hasDecorators())
{
Expand Down

0 comments on commit b62279d

Please sign in to comment.