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:
Mark Robert Miller 2009-05-22 15:30:32 +00:00
parent b78463619c
commit f25771a197
2 changed files with 4 additions and 1 deletions

View File

@ -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
----------------------

View File

@ -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();