[ https://issues.apache.org/jira/browse/LUCENE-9290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Drob resolved LUCENE-9290. ------------------------------- Fix Version/s: master (9.0) Assignee: Mike Drob Resolution: Fixed Thanks for the patch, [~ivera]! I added an entry to CHANGES and pushed this to master. > 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 > Assignee: Mike Drob > Priority: Trivial > Fix For: master (9.0) > > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org