hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Hofhansl (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-4648) Bytes.toBigDecimal() doesn't use offset
Date Wed, 26 Oct 2011 18:05:33 GMT

     [ https://issues.apache.org/jira/browse/HBASE-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lars Hofhansl resolved HBASE-4648.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.94.0
                   0.92.0

Committed to 0.92 and trunk. Since this is a (slightly) incompatible change I did not commit
it to 0.90... Open again if you feel otherwise.
                
> Bytes.toBigDecimal() doesn't use offset
> ---------------------------------------
>
>                 Key: HBASE-4648
>                 URL: https://issues.apache.org/jira/browse/HBASE-4648
>             Project: HBase
>          Issue Type: Bug
>          Components: util
>    Affects Versions: 0.90.4
>         Environment: Java 1.6.0_26, Mac OS X 10.7 and CentOS 6
>            Reporter: Bryan Keller
>             Fix For: 0.92.0, 0.94.0
>
>         Attachments: bigdec.patch, bigdec2.patch
>
>
> The Bytes.toBigDecimal(byte[], offset, len) method does not use the offset, thus you
will get an incorrect result for the BigDecimal unless the BigDecimal's bytes are at the beginning
of the byte array.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message