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

Decimal conversion from ByteBuffer ignores buffer position and limit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0, 1.8.1
    • 1.8.2
    • java
    • None

    Description

      The decimal conversion from a ByteBuffer currently copies the buffer contents into an array, but then calls array on the buffer and uses the buffer's internal array rather than the copied bytes. The result is that the constructed Decimal value uses whatever the buffer contained without using its position or limit.

      Attachments

        Issue Links

          Activity

            People

              rdblue Ryan Blue
              rdblue Ryan Blue
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: