Skip to content

Commit 26e1f33

Browse files
authored
CDI-694 Make an observer that uses both @observes and @ObservesAsync forbidden (jakartaee#384)
1 parent bd787e4 commit 26e1f33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/src/main/asciidoc/core/events.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ public void asyncAfterLogin(@ObservesAsync LoggedInEvent event) { ... }
391391

392392
If a method has more than one parameter annotated `@Observes` or `@ObservesAsync`, the container automatically detects the problem and treats it as a definition error.
393393

394+
If a method has a parameter annotated `@Observes` and `@ObservesAsync`, the container automatically detects the problem and treats it as a definition error.
395+
394396
Observed event qualifiers may be declared by annotating the event parameter:
395397

396398
[source, java]

0 commit comments

Comments
 (0)