lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r407492 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/search/spans/SpanNotQuery.java
Date Thu, 18 May 2006 07:56:37 GMT
Author: hossman
Date: Thu May 18 00:56:37 2006
New Revision: 407492

URL: http://svn.apache.org/viewvc?rev=407492&view=rev
Log:
fix for LUCENE-572

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=407492&r1=407491&r2=407492&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu May 18 00:56:37 2006
@@ -56,7 +56,11 @@
 
 11. LUCENE-352: Fixed bug in SpanNotQuery that manifested as
     NullPointerException when "exclude" query was not a SpanTermQuery.
+    (Chris Hostetter)
 
+12. LUCENE-572: Fixed bug in hashCode, was ignoring exclude clause
+    (Chris Hostetter)
+    
 1.9.1
 
 Bug fixes

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java?rev=407492&r1=407491&r2=407492&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNotQuery.java Thu May 18
00:56:37 2006
@@ -172,7 +172,7 @@
   public int hashCode() {
     int h = include.hashCode();
     h = (h<<1) | (h >>> 31);  // rotate left
-    h ^= include.hashCode();
+    h ^= exclude.hashCode();
     h = (h<<1) | (h >>> 31);  // rotate left
     h ^= Float.floatToRawIntBits(getBoost());
     return h;



Mime
View raw message