Skip to content

Clarify when the readOnly value goes into effect#243

Open
njr-11 wants to merge 1 commit intojakartaee:masterfrom
njr-11:address-review-comment-from-222
Open

Clarify when the readOnly value goes into effect#243
njr-11 wants to merge 1 commit intojakartaee:masterfrom
njr-11:address-review-comment-from-222

Conversation

@njr-11
Copy link
Copy Markdown
Member

@njr-11 njr-11 commented Oct 21, 2025

While reviewing #222 in order to learn about how this will integrate with the Jakarta Connector specification, I noticed ambiguous wording in the setReadOnly method Javadoc that makes it unclear whether the new read-only applies to a transaction that was just started on the thread or only to subsequent transactions that are started after that point. I posted a comment to the PR. The author replied to point out that the intended meaning is the latter, but indicated he had copied the pattern for the wording from the setTransactionTimeout method and would not be updating it under the PR (which was impossible anyway because the PR was already merged). Another participant asked me to submit a PR with proposed unambiguous wording for the methods. That is attempted under this PR.

@jta-bot
Copy link
Copy Markdown
Contributor

jta-bot commented Oct 21, 2025

Can one of the admins verify this patch?

@tomjenkinson
Copy link
Copy Markdown
Contributor

OK to test

@tomjenkinson
Copy link
Copy Markdown
Contributor

It looks very useful to me - thank you, @njr-11. I am going to approve it. We might as well let CI run on it (CI might build the spec doc and spot something) but I expect we can merge it soon. Thank you again

@tomjenkinson
Copy link
Copy Markdown
Contributor

Sorry, it should build the Javadoc, which is where the change is :)

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.

3 participants