bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [bval] 06/19: BVAL-141 fix wrong AroundInvoke signature
Date Mon, 10 Jun 2019 05:02:44 GMT
This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to tag 1.1.1
in repository https://gitbox.apache.org/repos/asf/bval.git

commit 09218cededcb9202674fdac83ee6d289628c6428
Author: struberg <struberg@13f79535-47bb-0310-9956-ffa450edef68>
AuthorDate: Sat Dec 12 23:33:31 2015 +0000

    BVAL-141 fix wrong AroundInvoke signature
    
    has been throws Throwable, but interceptors spec requires
    'throws Exception'
    
    
    git-svn-id: http://svn.apache.org/repos/asf/bval/trunk@1719752 13f79535-47bb-0310-9956-ffa450edef68
---
 bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java b/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
index 2107c95..711025e 100644
--- a/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
+++ b/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
@@ -77,7 +77,7 @@ public class BValInterceptor implements Serializable {
     private transient volatile ExecutableValidator executableValidator;
 
     @AroundConstruct // TODO: see previous one
-    public Object construct(final InvocationContext context) throws Exception {
+    public Object construct(InvocationContext context) throws Exception {
         @SuppressWarnings("rawtypes")
         final Constructor constructor = context.getConstructor();
         final Class<?> targetClass = constructor.getDeclaringClass();
@@ -117,7 +117,7 @@ public class BValInterceptor implements Serializable {
     }
 
     @AroundInvoke
-    public Object invoke(final InvocationContext context) throws Throwable {
+    public Object invoke(final InvocationContext context) throws Exception {
         final Method method = context.getMethod();
         final Class<?> targetClass = Proxies.classFor(context.getTarget().getClass());
         if (!isMethodValidated(targetClass, method)) {


Mime
View raw message