Skip to content

[#191] using term unchecked exception instead of RuntimeException for rollback for CDI interceptor#192

Open
ochaloup wants to merge 1 commit intojakartaee:masterfrom
ochaloup:unchecked-transaction-instead-of-runtime
Open

[#191] using term unchecked exception instead of RuntimeException for rollback for CDI interceptor#192
ochaloup wants to merge 1 commit intojakartaee:masterfrom
ochaloup:unchecked-transaction-instead-of-runtime

Conversation

@ochaloup
Copy link
Copy Markdown

fixes #191

@jta-bot
Copy link
Copy Markdown
Contributor

jta-bot commented Apr 22, 2021

Can one of the admins verify this patch?

@tomjenkinson
Copy link
Copy Markdown
Contributor

OK to test

@tomjenkinson
Copy link
Copy Markdown
Contributor

@ochaloup would it result in changes to the TCK? If not, can a TCK test be proposed?

@ochaloup ochaloup force-pushed the unchecked-transaction-instead-of-runtime branch 2 times, most recently from d32e34d to 05e4197 Compare April 22, 2021 19:30
@tomjenkinson
Copy link
Copy Markdown
Contributor

@ochaloup as you may have seen over at https://www.eclipse.org/lists/jta-dev/msg00198.html I have raised the topic with the community. I would ask, should the change was agreed, would you be willing to create a TCK test that can be used to verify implementations are compliant with the change?

The test would be to:

  • Verify that an @Transactional annotated bean that throws an java.lang.Error will result in the transaction being marked for rollback?
    *Verify that an @Transactional annotated bean which is declared to rollbackOn SQLException (and not SQLWarning) and that throws an Error in one of the relevant methods does actually cause the transaction to be marked for rollback?

This might be the place that the test could be added to should the change be agreed: https://github.com/eclipse-ee4j/jakartaee-tck/tree/master/src/com/sun/ts/tests/jta/ee/transactional

…ption for rollback for CDI interceptor

Signed-off-by: Ondra Chaloupka <ochaloup@redhat.com>
@ochaloup ochaloup force-pushed the unchecked-transaction-instead-of-runtime branch from 05e4197 to 38ba038 Compare September 17, 2021 13:07
@ochaloup
Copy link
Copy Markdown
Author

@tomjenkinson sure, I know. I will try to create the tests in TCK.

@tomjenkinson
Copy link
Copy Markdown
Contributor

retest this please

1 similar comment
@tomjenkinson
Copy link
Copy Markdown
Contributor

retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CDI interceptors should marked the transaction for rollback for unchecked exceptions not only for RuntimeExceptions

3 participants