]
Ondrej Chaloupka updated WFLY-12180:
------------------------------------
Git Pull Request:
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/Transacti...).