[
https://issues.jboss.org/browse/EJBTHREE-2250?page=com.atlassian.jira.plu...
]
Paul Meadows updated EJBTHREE-2250:
-----------------------------------
Description:
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.
was:
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)
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
Affects Versions: depchain-1.0.0-alpha-43
Environment: Sun JDK 1.6.0_23 (32-bit), Windows XP
Sun JDK 1.6.0_11 (64-bit), Red Hat Enterprise Linux ES release 4
JBoss AS 6.0.0.Final
Reporter: Paul Meadows
Assignee: jaikiran pai
Labels: ejb3, inheritance, transactions
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira