Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12180

In case of registering synchronization via TransactionSynchronizationRegistry for no active transaction context a NPE is thrown

    Details

      Description

      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).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ochaloup Ondrej Chaloupka
                Reporter:
                ochaloup Ondrej Chaloupka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: