Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Fixes a bug in the LTuple2 class. Add a test for it #632

Merged
merged 1 commit into from
Nov 13, 2015

Conversation

ianoc
Copy link
Collaborator

@ianoc ianoc commented Nov 13, 2015

No description provided.

}
}

property("Hash code of the LTuple2 is the same as a tuple2 would have been") = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious how this holds true given LTuple2 and Tuple2 don't have any type hierarchy between them. This will break if the ScalaRunTime implementation changes in the future?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both LTuple2 and Tuple2 are case classes, and both use the case class hash code method. So they should be synchronized across any upgrades. If something happens and that doesn't hold then its probably good we look at this for this test failing

@rubanm
Copy link
Contributor

rubanm commented Nov 13, 2015

LGTM, merge when green

@johnynek
Copy link
Collaborator

👍

ianoc added a commit that referenced this pull request Nov 13, 2015
Fixes a bug in the LTuple2 class. Add a test for it
@ianoc ianoc merged commit c400689 into develop Nov 13, 2015
@ianoc ianoc deleted the ianoc/fixBatchedStoreBug branch November 13, 2015 19:44
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants