[webbeans-issues] [JBoss JIRA] Created: (WBTCK-20) inconsistent Exceptions for Manager#getContext() and Manager#addContext() for multiple active Contexts

Mark Struberg (JIRA) jira-events at lists.jboss.org
Thu Feb 26 12:40:44 EST 2009


inconsistent Exceptions for Manager#getContext() and Manager#addContext() for multiple active Contexts
------------------------------------------------------------------------------------------------------

                 Key: WBTCK-20
                 URL: https://jira.jboss.org/jira/browse/WBTCK-20
             Project: JSR-299 TCK
          Issue Type: Bug
            Reporter: Mark Struberg


This affects
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?
This imho seams to interfere with the 'general rules' of jsr-299 Exceptions you (or Gavin) mentioned in a post a few months ago


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list