You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ma...@apache.org on 2009/08/18 00:28:52 UTC
svn commit: r805189 - in /lucene/java/trunk: CHANGES.txt
src/java/org/apache/lucene/search/Query.java
Author: markrmiller
Date: Mon Aug 17 22:28:51 2009
New Revision: 805189
URL: http://svn.apache.org/viewvc?rev=805189&view=rev
Log:
LUCENE-1808: Query.createWeight has been changed from protected to public
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/src/java/org/apache/lucene/search/Query.java
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=805189&r1=805188&r2=805189&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Mon Aug 17 22:28:51 2009
@@ -93,6 +93,13 @@
help in alleviating future back compat pain, Spans has been changed from
an interface to an abstract class.
(Hugh Cayless, Mark Miller)
+
+ 7. LUCENE-1808: Query.createWeight has been changed from protected to
+ public. This will be a back compat break if you have overridden this
+ method - but you are likely already affected by the LUCENE-1693 (make Weight
+ abstract rather than an interface) back compat break if you have overridden
+ Query.creatWeight, so we have taken the opportunity to make this change.
+ (Tim Smith, Shai Erera via Mark Miller)
Changes in runtime behavior
@@ -383,6 +390,9 @@
help in alleviating future back compat pain, Spans has been changed from
an interface to an abstract class.
(Hugh Cayless, Mark Miller)
+
+36. LUCENE-1808: Query.createWeight has been changed from protected to
+ public. (Tim Smith, Shai Erera via Mark Miller)
Bug fixes
Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Query.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/Query.java?rev=805189&r1=805188&r2=805189&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Query.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Query.java Mon Aug 17 22:28:51 2009
@@ -87,7 +87,7 @@
* <p>
* Only implemented by primitive queries, which re-write to themselves.
*/
- protected Weight createWeight(Searcher searcher) throws IOException {
+ public Weight createWeight(Searcher searcher) throws IOException {
throw new UnsupportedOperationException();
}