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

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. AVRO-1498.patch
          5 kB
          Doug Cutting
        2. FieldAccessReflect.patch
          3 kB
          Christopher Mann

        Issue Links

          Activity

            People

            • Assignee:
              christophermann Christopher Mann
              Reporter:
              christophermann Christopher Mann

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment