[jboss-jira] [JBoss JIRA] (WFLY-12180) In case of registering synchronization via TransactionSynchronizationRegistry for no active transaction context a NPE is thrown
Ondrej Chaloupka (Jira)
issues at jboss.org
Mon Jun 10 08:37:00 EDT 2019
[ https://issues.jboss.org/browse/WFLY-12180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Chaloupka updated WFLY-12180:
------------------------------------
Git Pull Request: https://github.com/wildfly/wildfly/pull/12356
> In case of registering synchronization via TransactionSynchronizationRegistry for no active transaction context a NPE is thrown
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-12180
> URL: https://issues.jboss.org/browse/WFLY-12180
> Project: WildFly
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 17.0.0.Final
> Reporter: Ondrej Chaloupka
> Assignee: Ondrej Chaloupka
> Priority: Minor
>
> Currently when there is a try to register a {{Synchronization}} at place of no active transaction exists then {{NullPointerException}} is thrown. The {{TransactionSynchronizationRegistry.registerInterposedSynchronization(Synchronization sync)}} should throw {{IllegalStateException}} instead (as defined in API of https://javaee.github.io/javaee-spec/javadocs/javax/transaction/TransactionSynchronizationRegistry.html).
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list