bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1719752 - /bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
Date Sat, 12 Dec 2015 23:33:31 GMT
Author: struberg
Date: Sat Dec 12 23:33:31 2015
New Revision: 1719752

URL: http://svn.apache.org/viewvc?rev=1719752&view=rev
Log:
BVAL-141 fix wrong AroundInvoke signature

has been throws Throwable, but interceptors spec requires
'throws Exception'

Modified:
    bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java

Modified: bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java?rev=1719752&r1=1719751&r2=1719752&view=diff
==============================================================================
--- bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java (original)
+++ bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java Sat Dec 12
23:33:31 2015
@@ -77,7 +77,7 @@ public class BValInterceptor implements
     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
     }
 
     @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