Skip to content

Define loopback behavior for Lock annotation - #899

Merged
njr-11 merged 1 commit into
jakartaee:mainfrom
njr-11:135-loopback-into-lock-methods
Jul 24, 2026
Merged

njr-11 merged 1 commit into
jakartaee:mainfrom
njr-11:135-loopback-into-lock-methods

Conversation

@njr-11

@njr-11 njr-11 commented Jul 13, 2026

Copy link
Copy Markdown
Member

Adds language to the Javadoc of @Lock addressing what happens when a method invokes another method of a bean that has a lock, taking into account the possibility that the lock and requested lock might differ in READ vs WRITE mode.

The discussion of this was started by @arjantijms in #135 (comment) of issue #135 . In the subsequent comments we decided that an attempt to upgrade from READ to WRITE should fail fast.

@njr-11 njr-11 added this to the 3.2.0 milestone Jul 13, 2026
@njr-11 njr-11 added the enhancement New feature or request label Jul 13, 2026
@njr-11 njr-11 mentioned this pull request Jul 13, 2026
Comment thread api/src/main/java/jakarta/enterprise/concurrent/Lock.java
@njr-11
njr-11 merged commit ea55dd6 into jakartaee:main Jul 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants