[weld-dev] Do interceptor methods need to declare an Exception to be thrown?

Gavin King gavin.king at gmail.com
Wed Dec 2 09:53:59 EST 2009


Not sure which version of the spec your'e looking at, but this was
already fixed in my version.

On Wed, Dec 2, 2009 at 6:25 AM, Mark Struberg <struberg at yahoo.de> wrote:
> txs Pete!
>
> We should also fix the example in the Spec 9.2 (and maybe others).
>
> LieGrue,
> strub
>
> --- Pete Muir <pmuir at redhat.com> schrieb am Mi, 2.12.2009:
>
>> Von: Pete Muir <pmuir at redhat.com>
>> Betreff: Re: [weld-dev] Do interceptor methods need to declare an Exception to be thrown?
>> An: "Mark Struberg" <struberg at yahoo.de>
>> CC: weld-dev at lists.jboss.org
>> Datum: Mittwoch, 2. Dezember 2009, 12:16
>> Correct, please file a CDITCK issue!
>>
>> On 2 Dec 2009, at 11:03, Mark Struberg wrote:
>>
>> > Hi!
>> >
>> > Somewhere in the back of my brain, I remember that
>> >
>> > @AroundInvoke
>> > public void dingsBums(InvocationContext ivc) throws
>> Exception;
>> >
>> > MUST declare the 'throws Exception', otherwise it's
>> illegal.
>> >
>> > Am I right, or is my brain tricking me?
>> >
>> > If the Exception is mandatory, the TCK needs to be
>> changed:
>> >
>> org.jboss.jsr299.tck.tests.context.passivating.KokkolaInterceptor
>>
>> > (and maybe others)
>> >
>> > txs and LieGrue,
>> > strub
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Sie sind Spam leid? Yahoo! Mail verfügt über einen
>> herausragenden Schutz gegen Massenmails.
>> > http://mail.yahoo.com
>> >
>> > _______________________________________________
>> > weld-dev mailing list
>> > weld-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/weld-dev
>>
>>
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
> http://mail.yahoo.com
>
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
>



-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org



More information about the weld-dev mailing list