[ https://issues.apache.org/jira/browse/LUCENE-9290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17068942#comment-17068942 ]
ASF subversion and git services commented on LUCENE-9290: --------------------------------------------------------- Commit 8cb50a52bc07c086bb578e1b9d9877981ef76d5e in lucene-solr's branch refs/heads/master from Ignacio Vera [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=8cb50a5 ] LUCENE-9290 Fix TestXYPoint#testEqualsAndHashCode closes #1375 > 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 > Priority: Trivial > > 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