Affects Version/s: 1.1
Fix Version/s: None
The JavaDocs for the following methods below need to be updated to reflect that IllegalStateException can be thrown. In particular IllegalStateException is being thrown in the case of these methods being called on closed connection objects. There could be more methods than those listed below.
Tests for IllegalStateException
The JavaDocs should be updated for all of the above method calls to specify that an IllegalStateException can be thrown on closed connection objects. Currently it doesn't. Only the JMS spec specifies that IllegalStateException must be thrown. The JavaDoc should be in sync with the spec and should mention it as well.
The JMS spec references for this is in the following sections:
- 4.3.5 Closing a Connection
- 4.4.1 Closing a Session
- 4.11 Method Inheritance across Messaging Domains
- Table 4-1 Methods That Must Throw an IllegalStateException
- 7.3 Standard Exceptions
- 11.2.21 JMS Source Java API documentation Clarifications
- Table 11-2 Domain Dependent Interfaces
The CTS JMS test directories which are testing for IllegalStateException to be thrown on closed QueueConnection, closed QueueReciever, closed QueueSender, etc. objects are listed below: