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

    XMLWordPrintable

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

      Attachments

        Activity

          People

            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: