[webbeans-dev] [TCK] ContextTest#testGetContextWithTooManyActiveContextsFails

Pete Muir pmuir at redhat.com
Thu Feb 26 12:09:55 EST 2009


Hi Mark,

Looks like a bug, please file a WBTCK :-)

Thanks

On 26 Feb 2009, at 16:42, Mark Struberg wrote:

> Hi!
>
> I have a question on the
> ContextTest#testGetContextWithTooManyActiveContextsFails()
>
> The spec says that 2 _active_ contexts may not be registered at the  
> same time.
>
> However, you assume an IllegalArgumentException to be thrown if two  
> active contexts exists while calling the addContext() function (btw  
> cannot find this in the Spec).
>
> On the other hand, the Spec requests to throw an  
> IllegalStateException for the getContext() if two active contexts  
> exist.
>
> Can we harmonise this?
> Or if ok the way it is, explain the background?
> This imho seams to interfere with the 'general rules' of jsr-299  
> Exceptions you (or Gavin) mentioned in a post a few months ago
>
> txs and LieGrue,
> strub
>
>
>
>
>
>
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev

--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete




More information about the weld-dev mailing list