[
https://issues.apache.org/jira/browse/AVRO-1136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeremy Lewi resolved AVRO-1136.
-------------------------------
Resolution: Won't Fix
Works as intended.
> Pair.equals returns false positives
> -----------------------------------
>
> Key: AVRO-1136
> URL: https://issues.apache.org/jira/browse/AVRO-1136
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.6.1
> Reporter: Jeremy Lewi
> Priority: Minor
>
> Here is a test that fails and indicates the bug. pair1.equals(pair2) should
> return false because the values aren't the same but it returns true causing
> the test to fail. This appears to be a bug in both 1.6.1 and 1.7.1.
> package contrail.avro;
> import static org.junit.Assert.*;
> import org.apache.avro.mapred.Pair;
> import org.junit.Test;
> public class TestAssertEquals {
> @Test
> public void test() {
> Pair<Integer, Integer> pair1 = new Pair<Integer, Integer>(1, 2);
> Pair<Integer, Integer> pair2 = new Pair<Integer, Integer>(1, 1);
> assertFalse(pair1.equals(pair2));
> }
> }
--
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