[
https://jira.jboss.org/jira/browse/JBREFLECT-39?page=com.atlassian.jira.p...
]
Adrian Brock commented on JBREFLECT-39:
---------------------------------------
I'll copy the relevant part of the stack trace to here in case the blog entry
disappears
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.reflect.plugins.MethodInfoImpl.(MethodInfoImpl.java:103)
at
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.(ReflectMethodInfoImpl.java:78)
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:211)
Cryptic Error Message
---------------------
Key: JBREFLECT-39
URL:
https://jira.jboss.org/jira/browse/JBREFLECT-39
Project: JBoss Reflection
Issue Type: Task
Components: ClassInfo
Affects Versions: JBossReflection.2.0.0.CR1
Reporter: Adrian Brock
This blog entry
http://merike.pri.ee/mind/2008/10/15/cryptic-jboss-error/
shows there is some issue with how parameter annotations work across JDKs.
Although I think GCJ is actually wrong if you read the javadoc
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#get...
since the parameter annotations array should be the same length as the number of
parameters
we can certainly give a better error message than an ArrayIndex error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira