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

Custom Encoding with @AvroEncode does not work when FieldAccessReflect is used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.5, 1.7.6
    • 1.7.7
    • java
    • None
    • All environments where sun.misc.unsafe is not available, especially Android devices.

    • reflection, custom encoding, AvroEncode

    Description

      Custom Encoding with @AvroEncode does not work if the field access is done via reflection and not via the sun.misc.unsafe API.
      This can be reproduced in a normal JVM with the unit tests (TestReflect.testAvroEncodeIO fails) after deactivating the use of the sun.misc.unsafe API in the ReflectionUtil class.

      Attachments

        1. FieldAccessReflect.patch
          3 kB
          Christopher Mann
        2. AVRO-1498.patch
          5 kB
          Doug Cutting

        Issue Links

          Activity

            People

              christophermann Christopher Mann
              christophermann Christopher Mann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: