In JMS 1.1 the javadoc description of Connection#createSession is "Creates an Session object...Returns: a Session object"
However the javadoc description of XAQueueConnection.html#createQueueSession is "Creates an XAQueueSession object...Returns: a newly created XAQueueSession"
and the javadoc description of XATopicConnection#createTopicSession is "Creates an XATopicSession object...Returns: a newly created XA topic session"
The latter two descriptions are inconsistent with the return type. The fact that the first description is consistent with the return type confirms that this is a typo. They should be changed to be consistent with the return type declared in the method signature.
XAQueueConnection.html#createQueueSession should "return a QueueSession" and
XATopicConnection#createTopicSession should "return a TopicSession"