Skip to content

Commit

Permalink
Incontainer fixes
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1698 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
pmuir committed Feb 24, 2009
1 parent 2a9892c commit 902bf31
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -321,16 +321,16 @@ protected void checkType()
{
if (getAnnotatedItem().isNonStaticMemberClass())
{
throw new DefinitionException("Simple Web Bean " + type + " cannot be a non-static inner class");
throw new DefinitionException("Simple bean " + type + " cannot be a non-static inner class");
}
if (getAnnotatedItem().isParameterizedType())
{
throw new DefinitionException("Simple Web Bean " + type + " cannot be a parameterized type");
throw new DefinitionException("Simple bean " + type + " cannot be a parameterized type");
}
boolean passivating = MetaDataCache.instance().getScopeModel(scopeType).isPassivating();
if (passivating && !Reflections.isSerializable(type))
{
throw new DefinitionException("Simple Web Beans declaring a passivating scope must have a serializable implementation class");
throw new DefinitionException("Simple bean declaring a passivating scope must have a serializable implementation class " + toString());
}
}

Expand Down

0 comments on commit 902bf31

Please sign in to comment.