This AIOOBE happens because AnnotatedCallableComparator only checks argX.getParameters() and doesn't check argX.getJavaMember().getParameterTypes().

Since the two don't always contain the same number of elements (at least in case of Enums - see BackedAnnotatedConstructor:78), the comparator should check the length of the array returned by getParameterTypes() before iterating over them.

Change By: Marko Lukša (18/Jul/12 10:18 AM)
Git Pull Request: https://github.com/weld/core/pull/208
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira