[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 07:51:01 EDT 2019


Ondrej Chaloupka created WFLY-12180:
---------------------------------------

             Summary: 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


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