Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1882

ConcurrentHashMap with non-string keys fails in Java 1.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.1
    • 1.8.2
    • None
    • None

    Description

      Support for ConcurrentHashMaps with non-string keys seems to be broken when 1.8 version of Java is used because the newer ConcurrentHashMap uses the names "key" and "val" instead of "key" and "values" for its Map.Entry class.

      HashEntry in 1.7

      MapEntry in 1.8

      Hence avro-code that assumes the presence of key/value breaks.
      (ReflectData.java:L434-L443)

      Run the attached test to see the same.

      Attachments

        Issue Links

          Activity

            People

              sachingoyal Sachin Goyal
              sachingoyal Sachin Goyal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: