[
https://jira.jboss.org/jira/browse/WBTCK-20?page=com.atlassian.jira.plugi...
]
Pete Muir closed WBTCK-20.
--------------------------
Resolution: Done
I agree, the test has been updated to check for an IllegalStateException.
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
Components: Existing Test Issues
Reporter: Mark Struberg
Assignee: Pete Muir
Fix For: 1.0.0.Beta1
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