Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4648

Bytes.toBigDecimal() doesn't use offset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.4
    • 0.92.0, 0.94.0
    • util
    • None
    • Java 1.6.0_26, Mac OS X 10.7 and CentOS 6

    • Incompatible change, Reviewed

    Description

      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.

      Attachments

        1. bigdec2.patch
          4 kB
          Bryan Keller
        2. bigdec.patch
          4 kB
          Bryan Keller

        Activity

          People

            Unassigned Unassigned
            bryanck Bryan Keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: