hibernate/hibernate-validator — pull request #274 by panga (2013-08-27 19:29:47+00:00)
Title: Static Method Bug

I'm experiencing problems using Hibernate Validator 5.0.1.Final.

I have some static factory methods with different parameters that raise an ArrayIndexOutOfBoundsException on application deploy.

I got the issue and created a test, whilst I already 'patched' a snapshot version to workaround my problem.

PS: I'm not able to follow the contributing guidelines because I can't signup in Hibernate JIRA to create a issue, maybe it's a Atlassian problem.

JBoss AS Stack Trace:
```
java.lang.ArrayIndexOutOfBoundsException: 0
at org.hibernate.validator.internal.util.ReflectionHelper.parametersResolveToSameTypes(ReflectionHelper.java:776)
at org.hibernate.validator.internal.util.ReflectionHelper.overrides(ReflectionHelper.java:747)
at org.hibernate.validator.internal.cdi.ValidationExtension.replaceWithOverriddenOrInterfaceMethod(ValidationExtension.java:389)
at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedMethod(ValidationExtension.java:214)
at org.hibernate.validator.internal.cdi.ValidationExtension.determineConstrainedCallables(ValidationExtension.java:201)
at org.hibernate.validator.internal.cdi.ValidationExtension.processAnnotatedType(ValidationExtension.java:181)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
```