[webbeans-dev] [TCK] ContextTest#testGetContextWithTooManyActiveContextsFails

Mark Struberg struberg at yahoo.de
Thu Feb 26 12:43:10 EST 2009


done:

https://jira.jboss.org/jira/browse/WBTCK-20

LieGrue,
strub


--- Pete Muir <pmuir at redhat.com> schrieb am Do, 26.2.2009:

> Von: Pete Muir <pmuir at redhat.com>
> Betreff: Re: [webbeans-dev] [TCK] ContextTest#testGetContextWithTooManyActiveContextsFails
> An: "Mark Struberg" <struberg at yahoo.de>
> CC: webbeans-dev at lists.jboss.org
> Datum: Donnerstag, 26. Februar 2009, 18:09
> 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