[
https://issues.apache.org/jira/browse/GORA-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278747#comment-13278747
]
Lewis John McGibbney commented on GORA-134:
-------------------------------------------
Hi Kazuomi would it be possible for you to incorporate your test code into a
new patch? I will be very happy to commit this later on. Seems a waste to have
the test code lying in Jira when we could have it running as a small test case.
:)
> ListGenericArray's hashCode causes StackOverflowError
> -----------------------------------------------------
>
> Key: GORA-134
> URL: https://issues.apache.org/jira/browse/GORA-134
> Project: Apache Gora
> Issue Type: Bug
> Components: schema
> Affects Versions: 0.2
> Reporter: Kazuomi Kashii
> Fix For: 0.3
>
> Attachments: GORA-134.patch
>
>
> public static void main(String[] args) throws Exception {
> Type type = STRING;
> Schema schema = Schema.create(type);
> GenericArray array = new ListGenericArray(schema);
> array.add(new Utf8("array test"));
> System.out.println("hashCode=" + array.hashCode());
> }
> Exception in thread "main" java.lang.StackOverflowError
> at org.apache.avro.generic.GenericData.get(GenericData.java:39)
> at
> org.apache.gora.persistency.ListGenericArray.hashCode(ListGenericArray.java:86)
> at org.apache.avro.generic.GenericData.hashCode(GenericData.java:434)
> at
> org.apache.gora.persistency.ListGenericArray.hashCode(ListGenericArray.java:86)
> at org.apache.avro.generic.GenericData.hashCode(GenericData.java:434)
> at
> org.apache.gora.persistency.ListGenericArray.hashCode(ListGenericArray.java:86)
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira