[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2250) Incorrect getRollbackOnly() behaviour for non-transacted bean with inheritance in JBoss 6
Paul Meadows (JIRA)
jira-events at lists.jboss.org
Mon May 23 08:24:01 EDT 2011
Incorrect getRollbackOnly() behaviour for non-transacted bean with inheritance in JBoss 6
-----------------------------------------------------------------------------------------
Key: EJBTHREE-2250
URL: https://issues.jboss.org/browse/EJBTHREE-2250
Project: EJB 3.0
Issue Type: Bug
Components: ejb3
Reporter: Paul Meadows
If a method in a bean's super-class uses EJBContext.getRollbackOnly() it fails to throw an IllegalStateException if the bean's TransactionAttribute is NOT_SUPPORTED (unless the bean itself overrides the method and explicitly calls the super-class). From the EJB spec' I'd expect getRollbackOnly() to throw java.lang.IllegalStateException in this case.
This appears to be a regression in JBoss 6.0 (seen with jboss-6.0.0.Final). The code works as I'd expect with jboss-5.1.0.GA. (I'm not sure how to find out the ejb3 package versions associated with these JBoss AS versions - sorry)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list