You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by jl...@apache.org on 2023/01/20 11:32:51 UTC

[bval] branch master updated: Add identifier arg, as the method without it has been removed from the API in CDI 4.0

This is an automated email from the ASF dual-hosted git repository.

jlmonteiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bval.git


The following commit(s) were added to refs/heads/master by this push:
     new b685ad2  Add identifier arg, as the method without it has been removed from the API in CDI 4.0
     new 56aee58  Merge pull request #13 from jgallimore/cdi4-fix
b685ad2 is described below

commit b685ad2125312e3100b2cc6270367515041c0b97
Author: Jonathan Gallimore <jo...@jrg.me.uk>
AuthorDate: Fri Jan 13 17:49:32 2023 +0000

    Add identifier arg, as the method without it has been removed from the API in CDI 4.0
---
 bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java b/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
index 6b15b2b..6e931b3 100644
--- a/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
+++ b/bval-jsr/src/main/java/org/apache/bval/cdi/BValExtension.java
@@ -109,7 +109,7 @@ public class BValExtension implements Extension {
 
     public void addBvalBinding(final @Observes BeforeBeanDiscovery beforeBeanDiscovery, final BeanManager beanManager) {
         beforeBeanDiscovery.addInterceptorBinding(BValBinding.class);
-        beforeBeanDiscovery.addAnnotatedType(beanManager.createAnnotatedType(BValInterceptor.class));
+        beforeBeanDiscovery.addAnnotatedType(beanManager.createAnnotatedType(BValInterceptor.class), "BValInterceptor");
     }
 
     // @WithAnnotations(ValidateOnExecution.class) doesn't check interfaces so not enough