lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r932773 - /lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java
Date Sat, 10 Apr 2010 17:51:30 GMT
Author: rmuir
Date: Sat Apr 10 17:51:30 2010
New Revision: 932773

URL: http://svn.apache.org/viewvc?rev=932773&view=rev
Log:
fix failing test, StdAnalyzer now stores this in its superclass

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java?rev=932773&r1=932772&r2=932773&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/analysis/TestLuceneMatchVersion.java Sat
Apr 10 17:51:30 2010
@@ -68,8 +68,8 @@ public class TestLuceneMatchVersion exte
     tok = (StandardTokenizer) tsi.getTokenizer();
     assertFalse(tok.isReplaceInvalidAcronym());
 
-    // this is a hack to get the private matchVersion field in StandardAnalyzer, may break
in later lucene versions - we have no getter :(
-    final Field matchVersionField = StandardAnalyzer.class.getDeclaredField("matchVersion");
+    // this is a hack to get the private matchVersion field in StandardAnalyzer's superclass,
may break in later lucene versions - we have no getter :(
+    final Field matchVersionField = StandardAnalyzer.class.getSuperclass().getDeclaredField("matchVersion");
     matchVersionField.setAccessible(true);
 
     type = schema.getFieldType("textStandardAnalyzerDefault");



Mime
View raw message