You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ignacio Vera (Jira)" <ji...@apache.org> on 2020/03/25 07:20:00 UTC

[jira] [Created] (LUCENE-9290) TestXYPoint#testEqualsAndHashCode test failure

Ignacio Vera created LUCENE-9290:
------------------------------------

             Summary: TestXYPoint#testEqualsAndHashCode test failure
                 Key: LUCENE-9290
                 URL: https://issues.apache.org/jira/browse/LUCENE-9290
             Project: Lucene - Core
          Issue Type: Test
            Reporter: Ignacio Vera


Test assumes that if two objects are different, then the has code must be different which is a wrong assumption. 

 

Reproduce with:
{code:java}
ant test  -Dtestcase=TestXYPoint -Dtests.method=testEqualsAndHashCode -Dtests.seed=733FAE735389BD86 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=en-PW -Dtests.timezone=Africa/Gaborone -Dtests.asserts=true -Dtests.file.encoding=UTF8{code}
 

Error:
{code:java}
5:39:56    [junit4]    > Throwable #1: java.lang.AssertionError: Values should be different. Actual: -268435620
05:39:56    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([733FAE735389BD86:F156BE502CC2B7]:0)
05:39:56    [junit4]    > 	at org.apache.lucene.geo.TestXYPoint.testEqualsAndHashCode(TestXYPoint.java:71)
05:39:56    [junit4]    > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) {code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org