You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by st...@apache.org on 2015/12/13 00:33:31 UTC
svn commit: r1719752 -
/bval/trunk/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
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)) {