You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/04/10 19:25:53 UTC

svn commit: r1090839 - /lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java

Author: mikemccand
Date: Sun Apr 10 17:25:52 2011
New Revision: 1090839

URL: http://svn.apache.org/viewvc?rev=1090839&view=rev
Log:
can't use terms with U+FFFF char on 3.x

Modified:
    lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java

Modified: lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java?rev=1090839&r1=1090838&r2=1090839&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java (original)
+++ lucene/dev/branches/branch_3x/lucene/src/test/org/apache/lucene/index/TestLongPostings.java Sun Apr 10 17:25:52 2011
@@ -43,6 +43,11 @@ public class TestLongPostings extends Lu
       if (other != null && s.equals(other)) {
         continue;
       }
+      if (s.indexOf("\uffff") != -1) {
+        // 3.x limitation only (4.x can handle this code
+        // point fine)
+        continue;
+      }
       final TokenStream ts = a.tokenStream("foo", new StringReader(s));
       final TermAttribute termAtt = ts.getAttribute(TermAttribute.class);
       int count = 0;