Author: nickarls
Date: 2009-01-07 03:26:34 -0500 (Wed, 07 Jan 2009)
New Revision: 802
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EventBean.java
Log:
unbreak tests
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EventBean.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EventBean.java 2009-01-07
07:58:22 UTC (rev 801)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/bean/EventBean.java 2009-01-07
08:26:34 UTC (rev 802)
@@ -61,6 +61,11 @@
{
validateInjectionPoint();
super.init();
+ // TODO: A better place to do this? Event beans also pass through the @New bean
+ // parsing in bootstrap so the injectionpoints should not be null. This is usually
+ // done in AbstractClassBean, but it's not in the EventBeans inheritance
hierarchy.
+ // Perhaps just init the injectionPoints to an empty set in AbstractBean...
+ super.initInjectionPoints();
checkAnnotatedItem();
}
Show replies by date