avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eelco Hillenius (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVRO-94) Paranamer does not return field names where Avro expects it does
Date Sat, 15 Aug 2009 21:57:14 GMT
Paranamer does not return field names where Avro expects it does

                 Key: AVRO-94
                 URL: https://issues.apache.org/jira/browse/AVRO-94
             Project: Avro
          Issue Type: Bug
    Affects Versions: 1.0.0, 1.0.1
         Environment: OSX Leopard, Java 1.6, Eclipse
            Reporter: Eelco Hillenius
             Fix For: 1.0.1

Not sure whether this is a bug in Paranamer or whether Avro has the wrong expectations, but
currently TestReflect#testProtocol throws an ArrayIndexOutOfBoundsException due to this problem,
and http://mail-archives.apache.org/mod_mbox/hadoop-avro-user/200908.mbox/%3Cef0a99650908031103q7c9ee4b9o377784462d65928e@mail.gmail.com%3E
seems to point to that same problem.

In ReflectData#getMessage:
String[] paramNames = PARANAMER.lookupParameterNames(method);
java.lang.reflect.Type[] paramTypes = method.getGenericParameterTypes();
for (int i = 0; i < paramTypes.length; i++)
  fields.put(paramNames[i],   <-- in the test, paramNames has lenght 0, while paramTypes
has length 1

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message