avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yibing Shi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1869) Decimal conversion from ByteBuffer ignores buffer position and limit
Date Tue, 28 Jun 2016 12:59:57 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15352944#comment-15352944
] 

Yibing Shi commented on AVRO-1869:
----------------------------------

Thanks [~rdblue]!

> Decimal conversion from ByteBuffer ignores buffer position and limit
> --------------------------------------------------------------------
>
>                 Key: AVRO-1869
>                 URL: https://issues.apache.org/jira/browse/AVRO-1869
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.8.0, 1.8.1
>            Reporter: Ryan Blue
>            Assignee: Ryan Blue
>             Fix For: 1.8.2
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message