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

Pair does not deep check arrays for equality.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.1
    • None
    • util
    • None
    • Any (discovered in Ubuntu 10.10 using TRUNK).

    • Reviewed
    • Pair now does a deep equals on arrays, rather than a shallow, pointer compare.

    Description

      Pair does not deep check arrays for equality. It merely does x.equals for the sent Object. However, with any type of array this is merely going to compare the array pointers, rather than the underlying data structure.

      It requires a rewriting of the private equals method in Pair to check for elements being an array, then checking the underlying elements.

      Attachments

        1. HBASE-3387.patch
          5 kB
          Jesse Yates
        2. HBASE-3387-revert.patch
          5 kB
          Jesse Yates

        Issue Links

          Activity

            People

              jesse_yates Jesse Yates
              jesse_yates Jesse Yates
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: