<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
I think it is a minor bug in the spec as well. In fact in Weld we do enforce this requirement (that @AroundInvoke is compliant with the EJB3 spec and @AroundInvoke interceptor methods must return an Object).<BR>
<BR>
Marius<BR>
<BR>
On Fri, 2009-10-23 at 18:56 +0200, Sven Linstaedt wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
Is this a minor bug in the spec? If this s the case, please also review the example in 9.5.1.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
br, Sven<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
---------- Forwarded message ----------<BR>
From: <B>Sven Linstaedt</B> <<A HREF="mailto:sven.linstaedt@googlemail.com">sven.linstaedt@googlemail.com</A>><BR>
Date: 2009/10/23<BR>
Subject: Re: @AroundInvoke -- JCDI vs EJB3 and return type Object?<BR>
To: <A HREF="mailto:openwebbeans-dev@incubator.apache.org">openwebbeans-dev@incubator.apache.org</A><BR>
<BR>
<BR>
At a first glance I would consider this a bug in the example. I can not imagine Gavin introduced some kind of "special interceptors for void returning methods". This would rather be a use case for decorators.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
I will forward your question to the jboss list, if you don't mind. Besides... thanks for for the review.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
br, Sven
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
2009/10/22 Eric Covener <<A HREF="mailto:covener@apache.org">covener@apache.org</A>>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BLOCKQUOTE>
Interceptor methods with @AroundInvoke in EJB3 requires a return type<BR>
of Object, which is enforced by<BR>
WebBeansUtil.java::checkAroundInvokeAnnotationCriterias(). In EJB3,<BR>
Interceptors return InvocationContext.proceed() to their caller.<BR>
<BR>
However it seems that @AroundInvoke in JCDI is documented somewhat<BR>
differently -- in the JCDI spec (1.3.6) the example has a void return<BR>
type and just calls InvocationContext.proceed().<BR>
<BR>
Should the JCDI spec example look just like EJB3, or is this an<BR>
OWB-specific restriction?<BR>
<BR>
<FONT COLOR="#888888">--</FONT><BR>
<FONT COLOR="#888888">Eric Covener</FONT><BR>
<FONT COLOR="#888888"><A HREF="mailto:covener@gmail.com">covener@gmail.com</A></FONT>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
weld-dev mailing list
<A HREF="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</A>
<A HREF="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>