[webbeans-issues] [JBoss JIRA] Updated: (WBTCK-20) inconsistent Exceptions for Manager#getContext() and Manager#addContext() for multiple active Contexts
Pete Muir (JIRA)
jira-events at lists.jboss.org
Thu Feb 26 14:56:44 EST 2009
[ https://jira.jboss.org/jira/browse/WBTCK-20?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WBTCK-20:
---------------------------
Fix Version/s: 1.0.0.Alpha1
> 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
> Fix For: 1.0.0.Alpha1
>
>
> 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