Boo
  1. Boo
  2. BOO-336

Boo.Lang.Hash does not override Clone.

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: Runtime (Boo.Lang)
    • Labels:
      None
    • Number of attachments :
      1

      Description

      (extremely low hanging fruit)

      Boo.Lang.Hash does not properly override "Clone()"; since this class inherits from Hashmap, it actually returns a Hashmap instead of the expected Hash class when the Clone() method is called. Since you can't iterate through a Hashmap via DictionaryKey, this is unpleasant to deal with.

      An extremely small patch, attached, implements Clone() to return a new Hash object rather than a Hashmap.

        Activity

        Hide
        Rodrigo B. de Oliveira added a comment -

        thanks!

        Show
        Rodrigo B. de Oliveira added a comment - thanks!

          People

          • Assignee:
            Arron Washington
            Reporter:
            Arron Washington
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: