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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.5, 1.7.6
    • Fix Version/s: 1.7.7
    • Component/s: java
    • Labels:
      None
    • Environment:

      All environments where sun.misc.unsafe is not available, especially Android devices.

    • Tags:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: