Is this a minor bug in the spec? If this s the case, please also review the example in 9.5.1.
Interceptor methods with @AroundInvoke in EJB3 requires a return type
of Object, which is enforced by
WebBeansUtil.java::checkAroundInvokeAnnotationCriterias(). In EJB3,
Interceptors return InvocationContext.proceed() to their caller.
However it seems that @AroundInvoke in JCDI is documented somewhat
differently -- in the JCDI spec (1.3.6) the example has a void return
type and just calls InvocationContext.proceed().
Should the JCDI spec example look just like EJB3, or is this an
OWB-specific restriction?
--
Eric Covener
covener@gmail.com