Skip to content

Commit

Permalink
Merge pull request #45220 from ozangunalp/messaging_vt_class_fix
Browse files Browse the repository at this point in the history
Messaging RunOnVirtualThreads fix on class annotation
  • Loading branch information
cescoffier authored Jan 6, 2025
2 parents 3cd83ac + 0bd5d2a commit 66c4aad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ && hasBlockingPayloadSignature(methodInfo)) {
AnnotationInstance transactionalAnnotation = methodInfo.annotation(TRANSACTIONAL);
AnnotationInstance runOnVirtualThreadAnnotation = methodInfo.annotation(RUN_ON_VIRTUAL_THREAD);
// IF @RunOnVirtualThread is used on the declaring class, it forces all @Blocking method to be run on virtual threads.
AnnotationInstance runOnVirtualThreadClassAnnotation = methodInfo.declaringClass().annotation(RUN_ON_VIRTUAL_THREAD);
AnnotationInstance runOnVirtualThreadClassAnnotation = methodInfo.declaringClass()
.declaredAnnotation(RUN_ON_VIRTUAL_THREAD);
if (blockingAnnotation != null || smallryeBlockingAnnotation != null || transactionalAnnotation != null
|| runOnVirtualThreadAnnotation != null) {
mediatorConfigurationSupport.validateBlocking(validationOutput);
Expand Down

0 comments on commit 66c4aad

Please sign in to comment.