Skip to content

Apache Lucene open-source search software

LUCENE-2074: First step until we resolve this issue. This just adds the warning, also added to 3.0. We will update the Flex version to 1.5 resolve this in 3.1.

Uwe Schindler73e2f9cd292e
diff --git a/src/java/org/apache/lucene/analysis/standard/READ_BEFORE_REGENERATING.txt b/src/java/org/apache/lucene/analysis/standard/READ_BEFORE_REGENERATING.txt
new file mode 100644
index 00000000000..97a715b461d
--- /dev/null
+++ b/src/java/org/apache/lucene/analysis/standard/READ_BEFORE_REGENERATING.txt
@@ -0,0 +1,7 @@
+WARNING: if you change StandardTokenizerImpl.jflex and need to regenerate
+ the tokenizer, only use Java 1.4 !!!
+ This grammar currently uses constructs (eg :digit:, :letter:) whose
+ meaning can vary according to the JRE used to run jflex. See
+ https://issues.apache.org/jira/browse/LUCENE-1126 for details.
+ For current backwards compatibility it is needed to support
+ only Java 1.4 - this will change in Lucene 3.1.
diff --git a/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java b/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java
index 65249aba2ea..8f96b184042 100644
--- a/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java
+++ b/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java
@@ -21,11 +21,13 @@ package org.apache.lucene.analysis.standard;
/*
-NOTE: if you change this file and need to regenerate the tokenizer,
- remember to use JRE 1.4 when running jflex (before Lucene 3.0).
- This grammar now uses constructs (eg :digit:) whose meaning can
- vary according to the JRE used to run jflex. See
- https://issues.apache.org/jira/browse/LUCENE-1126 for details
+WARNING: if you change StandardTokenizerImpl.jflex and need to regenerate
+ the tokenizer, only use Java 1.4 !!!
+ This grammar currently uses constructs (eg :digit:, :letter:) whose
+ meaning can vary according to the JRE used to run jflex. See
+ https://issues.apache.org/jira/browse/LUCENE-1126 for details.
+ For current backwards compatibility it is needed to support
+ only Java 1.4 - this will change in Lucene 3.1.
*/
diff --git a/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex b/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex
index 0d886031779..0ac120fbd94 100644
--- a/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex
+++ b/src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.jflex
@@ -19,12 +19,13 @@ package org.apache.lucene.analysis.standard;
/*
-NOTE: if you change StandardTokenizerImpl.jflex and need to regenerate
- the tokenizer, remember to use JRE 1.4 to run jflex (before
- Lucene 3.0). This grammar now uses constructs (eg :digit:,
- :letter:) whose meaning can vary according to the JRE used to
- run jflex. See
+WARNING: if you change StandardTokenizerImpl.jflex and need to regenerate
+ the tokenizer, only use Java 1.4 !!!
+ This grammar currently uses constructs (eg :digit:, :letter:) whose
+ meaning can vary according to the JRE used to run jflex. See
https://issues.apache.org/jira/browse/LUCENE-1126 for details.
+ For current backwards compatibility it is needed to support
+ only Java 1.4 - this will change in Lucene 3.1.
*/