LUCENE-3720: add warning+experimental and disable test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236341 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-01-26 18:26:07 +00:00
parent 3281e5b3a3
commit f640687877
2 changed files with 9 additions and 0 deletions

View File

@ -32,7 +32,14 @@ import org.apache.lucene.analysis.tokenattributes.PositionIncrementAttribute;
/**
* TokenFilter for Beider-Morse phonetic encoding.
* <p>
* <b><font color="red">
* WARNING: some inputs can cause extremely high RAM usage!
* https://issues.apache.org/jira/browse/CODEC-132
* </font></b>
* </p>
* @see BeiderMorseEncoder
* @lucene.experimental
*/
public final class BeiderMorseFilter extends TokenFilter {
private final PhoneticEngine engine;

View File

@ -28,6 +28,7 @@ import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.BaseTokenStreamTestCase;
import org.apache.lucene.analysis.MockTokenizer;
import org.apache.lucene.analysis.Tokenizer;
import org.junit.Ignore;
/** Tests {@link BeiderMorseFilter} */
public class TestBeiderMorseFilter extends BaseTokenStreamTestCase {
@ -86,6 +87,7 @@ public class TestBeiderMorseFilter extends BaseTokenStreamTestCase {
new int[] { 1 });
}
@Ignore("broken: causes OOM on some strings (https://issues.apache.org/jira/browse/CODEC-132)")
public void testRandom() throws Exception {
checkRandomData(random, analyzer, 1000 * RANDOM_MULTIPLIER);
}