Skip to content

Commit

Permalink
WELD-580 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luksa authored and jharting committed Mar 26, 2012
1 parent 69b545d commit dc1d45a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -94,7 +94,7 @@ private static boolean isValidBusinessMethodInterceptorMethod(InterceptionType i
}

Class<?>[] exceptionTypes = method.getJavaMethod().getExceptionTypes();
if (exceptionTypes.length != 1 && Exception.class.equals(exceptionTypes[0])) {
if (exceptionTypes.length != 1 || !Exception.class.equals(exceptionTypes[0])) {
throw new DefinitionException(ValidatorMessage.INTERCEPTOR_METHOD_DOES_NOT_THROW_EXCEPTION, method.getJavaMethod());
}

Expand Down

0 comments on commit dc1d45a

Please sign in to comment.