From lucene-dev-return-7017-apmail-jakarta-lucene-dev-archive=jakarta.apache.org@jakarta.apache.org Tue Aug 03 09:30:03 2004 Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 93344 invoked from network); 3 Aug 2004 09:30:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Aug 2004 09:30:02 -0000 Received: (qmail 39787 invoked by uid 500); 3 Aug 2004 09:29:58 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 39735 invoked by uid 500); 3 Aug 2004 09:29:57 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 39685 invoked by uid 99); 3 Aug 2004 09:29:56 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received: from [216.136.173.239] (HELO web12702.mail.yahoo.com) (216.136.173.239) by apache.org (qpsmtpd/0.27.1) with SMTP; Tue, 03 Aug 2004 02:29:52 -0700 Message-ID: <20040803092952.92631.qmail@web12702.mail.yahoo.com> Received: from [195.29.104.106] by web12702.mail.yahoo.com via HTTP; Tue, 03 Aug 2004 02:29:51 PDT Date: Tue, 3 Aug 2004 02:29:51 -0700 (PDT) From: Otis Gospodnetic Subject: Re: Is the latest StandardTokenizer.jj corrupted? To: Lucene Developers List In-Reply-To: <9A1403B2-E4DC-11D8-8AAE-000393A564E6@ehatchersolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hm, not sure. As far as I remember, I did run 'ant javacc', because I also committed the generated .java files. Otis --- Erik Hatcher wrote: > Roy, > > I've committed a fix that fixes the import statement issues (Otis - > what happened? - I guess you didn't try regenerating from the JavaCC > > .jj files) > > All seems to be well now. Let me know if you still have issues. > > Erik > > On Aug 2, 2004, at 3:30 PM, Roy wrote: > > > The latest StandardTokenizer.jj in cvs repository seems to be > > corrupted. > > > > I used ant javacc-StandardAnalyzer to regenerate the java code, > then > > tried to rebuild the lucene package but got some strange errors as > > follows. It seems javacc didn't generated correct code against the > > latest jj file: the last two errors indicate there are some > characters > > missing from those symbols. I checked out the 1.4 jj file and did > the > > same thing again. It works! So I think there's some problems with > the > > latest version. The diff shows the change is minor. I didn't figure > > the cause. Maybe somebody in the core team can look into this? > > > > My purpose is to modify the StandardTokenizer.jj to build my own. > But > > I didn't succeed. Then I found out even the vanilla jj has some > > problems. > > > > compile-core: > > [javac] Compiling 160 source files to > > /home/roy/jakarta-lucene/build/classes/java > > [javac] > > > /home/roy/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/ > > > StandardTokenizer.java:15: > > cannot resolve symbol > > [javac] symbol : class Reader > > [javac] location: class > > org.apache.lucene.analysis.standard.StandardTokenizer > > [javac] public StandardTokenizer(Reader reader) { > > [javac] ^ > > [javac] > > > /home/roy/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/ > > > StandardTokenizer.java:24: > > cannot resolve symbol > > [javac] symbol : class IOException > > [javac] location: class > > org.apache.lucene.analysis.standard.StandardTokenizer > > [javac] final public org.apache.lucene.analysis.Token next() > > throws ParseException, IOException { > > [javac] > > ^ > > [javac] > > > /home/roy/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/ > > > StandardTokenizer.java:15: > > recursive constructor invocation > > [javac] public StandardTokenizer(Reader reader) { > > [javac] ^ > > [javac] > > > /home/roy/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/ > > > StandardTokenizerTokenManager.java:493: > > cannot resolve symbol > > [javac] symbol : method jCheckNAdd (int) > > [javac] location: class > > org.apache.lucene.analysis.standard.StandardTokenizerTokenManager > > [javac] jCheckNAdd(25); > > [javac] ^ > > [javac] > > > /home/roy/jakarta-lucene/src/java/org/apache/lucene/analysis/standard/ > > > StandardTokenizerTokenManager.java:942: > > cannot resolve symbol > > [javac] symbol : variable ind > > [javac] location: class > > org.apache.lucene.analysis.standard.StandardTokenizerTokenManager > > [javac] ind = 4; > > [javac] ^ > > [javac] 5 errors > > > > BUILD FAILED > > /home/roy/jakarta-lucene/build.xml:140: Compile failed; see the > > compiler error output for details. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: lucene-dev-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-dev-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org