mirror of https://github.com/apache/lucene.git
SOLR-1182: Fix bug in OrdFieldSource#equals which could cause a bug with OrdFieldSource caching on OrdFieldSource#hashcode collisions.
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@777577 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b78463619c
commit
f25771a197
|
@ -387,6 +387,9 @@ Bug Fixes
|
|||
|
||||
47. SOLR-1174: Fix Logging admin form submit url for multicore. (Jacob Singh via shalin)
|
||||
|
||||
48. SOLR-1182: Fix bug in OrdFieldSource#equals which could cause a bug with OrdFieldSource caching
|
||||
on OrdFieldSource#hashcode collisions. (Mark Miller)
|
||||
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
|
|
@ -85,7 +85,7 @@ public class OrdFieldSource extends ValueSource {
|
|||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
return o.getClass() == OrdFieldSource.class && this.field.equals(field);
|
||||
return o.getClass() == OrdFieldSource.class && this.field.equals(((OrdFieldSource)o).field);
|
||||
}
|
||||
|
||||
private static final int hcode = OrdFieldSource.class.hashCode();
|
||||
|
|
Loading…
Reference in New Issue