Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-134

ListGenericArray's hashCode causes StackOverflowError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2
    • 0.2.1
    • schema
    • None

    Description

      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)
      ...

      Attachments

        1. GORA-134.patch
          0.6 kB
          Kazuomi Kashii
        2. GORA-134-v2.patch
          2 kB
          Kazuomi Kashii

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kazk Kazuomi Kashii
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: