[webbeans-commits] Webbeans SVN: r2763 - ri/trunk/impl/src/main/java/org/jboss/webbeans/bean.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Thu Jun 4 13:20:38 EDT 2009
Author: pete.muir at jboss.org
Date: 2009-06-04 13:20:38 -0400 (Thu, 04 Jun 2009)
New Revision: 2763
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
Log:
WBRI-266
Modified: ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/SimpleBean.java
===================================================================
--- ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2009-06-04 17:18:05 UTC (rev 2762)
+++ ri/trunk/impl/src/main/java/org/jboss/webbeans/bean/SimpleBean.java 2009-06-04 17:20:38 UTC (rev 2763)
@@ -384,12 +384,12 @@
{
if (environment.getClassBean(getAnnotatedItem().getSuperclass()) == null)
{
- throw new IllegalStateException(toString() + " does not specialize a bean");
+ throw new DefinitionException(toString() + " does not specialize a bean");
}
AbstractClassBean<?> specializedBean = environment.getClassBean(getAnnotatedItem().getSuperclass());
if (!(specializedBean instanceof SimpleBean))
{
- throw new IllegalStateException(toString() + " doesn't have a simple bean as a superclass " + specializedBean);
+ throw new DefinitionException(toString() + " doesn't have a simple bean as a superclass " + specializedBean);
}
else
{
More information about the weld-commits
mailing list